summaryrefslogtreecommitdiffstats
path: root/include/media/stagefright/OMXCodec.h
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2010-06-10 11:12:39 -0700
committerAndreas Huber <andih@google.com>2010-06-10 11:24:49 -0700
commitd35bd5fb4e09c2cd8608497c279cbb2ef9c3a029 (patch)
tree202a1dc44facac79bb0175f2dce9ec1381850854 /include/media/stagefright/OMXCodec.h
parent98c7c319907f4ed3915461ca62b1027590d351e5 (diff)
downloadframeworks_av-d35bd5fb4e09c2cd8608497c279cbb2ef9c3a029.zip
frameworks_av-d35bd5fb4e09c2cd8608497c279cbb2ef9c3a029.tar.gz
frameworks_av-d35bd5fb4e09c2cd8608497c279cbb2ef9c3a029.tar.bz2
Support "pausing" of MediaSources with the effect that they no longer pull on their upstream source until a subsequent read-with-seek.
Change-Id: Ie4153a10ab36c1135f5fcfb572958129d886bcc3
Diffstat (limited to 'include/media/stagefright/OMXCodec.h')
-rw-r--r--include/media/stagefright/OMXCodec.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/media/stagefright/OMXCodec.h b/include/media/stagefright/OMXCodec.h
index 3fbb469..c95fc02 100644
--- a/include/media/stagefright/OMXCodec.h
+++ b/include/media/stagefright/OMXCodec.h
@@ -52,6 +52,8 @@ struct OMXCodec : public MediaSource,
virtual status_t read(
MediaBuffer **buffer, const ReadOptions *options = NULL);
+ virtual status_t pause();
+
void on_message(const omx_message &msg);
// from MediaBufferObserver
@@ -144,6 +146,8 @@ private:
Mutex mLock;
Condition mAsyncCompletion;
+ bool mPaused;
+
// A list of indices into mPortStatus[kPortIndexOutput] filled with data.
List<size_t> mFilledBuffers;
Condition mBufferFilled;