diff options
author | Andreas Huber <andih@google.com> | 2011-07-13 09:36:11 -0700 |
---|---|---|
committer | Andreas Huber <andih@google.com> | 2011-07-13 09:47:09 -0700 |
commit | 67d464f47e842d5069e993408fd51ec122ad8019 (patch) | |
tree | f0881cc39a02c87b9d7efcf9068387dabdd0152e /include | |
parent | 9cba686366870b3a4c69bcec0eb4200352ce481d (diff) | |
download | frameworks_base-67d464f47e842d5069e993408fd51ec122ad8019.zip frameworks_base-67d464f47e842d5069e993408fd51ec122ad8019.tar.gz frameworks_base-67d464f47e842d5069e993408fd51ec122ad8019.tar.bz2 |
Enable signalling of a stream discontinuity involving a format-change
through IStreamListener.
Change-Id: Ic0409cdc4891ad26b61f2f98bdda3c7fb2e2de6a
related-to-bug: 5022434
Diffstat (limited to 'include')
-rw-r--r-- | include/media/IStreamSource.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/media/IStreamSource.h b/include/media/IStreamSource.h index d310cee..cc63356 100644 --- a/include/media/IStreamSource.h +++ b/include/media/IStreamSource.h @@ -51,6 +51,17 @@ struct IStreamListener : public IInterface { // will be suppressed until media time reaches this timestamp. static const char *const kKeyResumeAtPTS; + // When signalling a discontinuity you can optionally + // signal that this is a "hard" discontinuity, i.e. the format + // or configuration of subsequent stream data differs from that + // currently active. To do so, include a non-zero int32_t value + // under the key "kKeyFormatChange" when issuing the DISCONTINUITY + // command. + // The new logical stream must start with proper codec initialization + // information for playback to continue, i.e. SPS and PPS in the case + // of AVC video etc. + static const char *const kKeyFormatChange; + virtual void issueCommand( Command cmd, bool synchronous, const sp<AMessage> &msg = NULL) = 0; }; |