From 42e549e4ab54802d788c43e3a04a85b7a1a95e97 Mon Sep 17 00:00:00 2001 From: Andreas Huber Date: Wed, 13 Jul 2011 09:36:11 -0700 Subject: Enable signalling of a stream discontinuity involving a format-change through IStreamListener. Change-Id: Ic0409cdc4891ad26b61f2f98bdda3c7fb2e2de6a related-to-bug: 5022434 --- include/media/IStreamSource.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'include/media/IStreamSource.h') 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 &msg = NULL) = 0; }; -- cgit v1.1