summaryrefslogtreecommitdiffstats
path: root/include/media/stagefright/MediaSource.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/MediaSource.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/MediaSource.h')
-rw-r--r--include/media/stagefright/MediaSource.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/media/stagefright/MediaSource.h b/include/media/stagefright/MediaSource.h
index 96d57e7..9cc94c8 100644
--- a/include/media/stagefright/MediaSource.h
+++ b/include/media/stagefright/MediaSource.h
@@ -20,6 +20,7 @@
#include <sys/types.h>
+#include <media/stagefright/MediaErrors.h>
#include <utils/RefBase.h>
namespace android {
@@ -83,6 +84,13 @@ struct MediaSource : public RefBase {
int64_t mLatenessUs;
};
+ // Causes this source to suspend pulling data from its upstream source
+ // until a subsequent read-with-seek. Currently only supported by
+ // OMXCodec.
+ virtual status_t pause() {
+ return ERROR_UNSUPPORTED;
+ }
+
protected:
virtual ~MediaSource();