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 | 42e549e4ab54802d788c43e3a04a85b7a1a95e97 (patch) | |
tree | 6bf620f639533f345089df3902a93109028bed4e /include/media/IStreamSource.h | |
parent | 9cded98816c40fd55053b1e38fc7fd8a68da8866 (diff) | |
download | frameworks_av-42e549e4ab54802d788c43e3a04a85b7a1a95e97.zip frameworks_av-42e549e4ab54802d788c43e3a04a85b7a1a95e97.tar.gz frameworks_av-42e549e4ab54802d788c43e3a04a85b7a1a95e97.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/media/IStreamSource.h')
-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; }; |