summaryrefslogtreecommitdiffstats
path: root/include/media/IStreamSource.h
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2011-03-02 15:34:46 -0800
committerAndreas Huber <andih@google.com>2011-03-02 15:38:32 -0800
commit669ad13de924af145771837b339c882e30ea8ce2 (patch)
tree178ee1fedeba8f4b48b93f4fc2a70f1ffdb323aa /include/media/IStreamSource.h
parentded35fcf62946acd1ec89bbe7c991c7ebd4d4483 (diff)
downloadframeworks_base-669ad13de924af145771837b339c882e30ea8ce2.zip
frameworks_base-669ad13de924af145771837b339c882e30ea8ce2.tar.gz
frameworks_base-669ad13de924af145771837b339c882e30ea8ce2.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.h6
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;
};