diff options
author | Andreas Huber <andih@google.com> | 2011-03-02 15:34:46 -0800 |
---|---|---|
committer | Andreas Huber <andih@google.com> | 2011-03-02 15:38:32 -0800 |
commit | 32f3cefa373cd55e63deda36ca9d07c7fe22eaaf (patch) | |
tree | b8ff788f27c04b39b7959783a53e7a138cdff3e6 /include/media/IStreamSource.h | |
parent | 3fd91baee812919f53a85c5c05f32606313f8334 (diff) | |
download | frameworks_av-32f3cefa373cd55e63deda36ca9d07c7fe22eaaf.zip frameworks_av-32f3cefa373cd55e63deda36ca9d07c7fe22eaaf.tar.gz frameworks_av-32f3cefa373cd55e63deda36ca9d07c7fe22eaaf.tar.bz2 |
Allow optional specification of a PTS timestamp when signalling a discontinuity.
If present, rendering will be suppressed until reaching the timestamp.
Change-Id: Ic64bdf4225063c5a4d042ea9809960b843a46d19
related-to-bug: 3489454
Diffstat (limited to 'include/media/IStreamSource.h')
-rw-r--r-- | include/media/IStreamSource.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/media/IStreamSource.h b/include/media/IStreamSource.h index 4b698e6..d310cee 100644 --- a/include/media/IStreamSource.h +++ b/include/media/IStreamSource.h @@ -45,6 +45,12 @@ struct IStreamListener : public IInterface { virtual void queueBuffer(size_t index, size_t size) = 0; + // When signalling a discontinuity you can optionally + // specify an int64_t PTS timestamp in "msg". + // If present, rendering of data following the discontinuity + // will be suppressed until media time reaches this timestamp. + static const char *const kKeyResumeAtPTS; + virtual void issueCommand( Command cmd, bool synchronous, const sp<AMessage> &msg = NULL) = 0; }; |