summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/include
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2010-05-06 10:18:05 -0700
committerAndreas Huber <andih@google.com>2010-05-06 10:31:57 -0700
commitacdd9d0f59c3d8bdc3de80664a609527ec3d21e2 (patch)
treee75291b6c434b508d278b7f7ccb000863ca1f9df /media/libstagefright/include
parent3cf4e43cdd391502690c07e08e805aa8ff5db0c0 (diff)
downloadframeworks_av-acdd9d0f59c3d8bdc3de80664a609527ec3d21e2.zip
frameworks_av-acdd9d0f59c3d8bdc3de80664a609527ec3d21e2.tar.gz
frameworks_av-acdd9d0f59c3d8bdc3de80664a609527ec3d21e2.tar.bz2
Disable vorbis seek when streaming from localhost.
Change-Id: Icda523ae1c89e26482f1c1767fe3a8b9222bb30f related-to-bug: 2654400
Diffstat (limited to 'media/libstagefright/include')
-rw-r--r--media/libstagefright/include/AwesomePlayer.h6
-rw-r--r--media/libstagefright/include/VorbisExtractor.h2
2 files changed, 7 insertions, 1 deletions
diff --git a/media/libstagefright/include/AwesomePlayer.h b/media/libstagefright/include/AwesomePlayer.h
index 9e8a674..9455743 100644
--- a/media/libstagefright/include/AwesomePlayer.h
+++ b/media/libstagefright/include/AwesomePlayer.h
@@ -84,10 +84,13 @@ struct AwesomePlayer {
status_t suspend();
status_t resume();
+ // This is a mask of MediaExtractor::Flags.
+ uint32_t flags() const;
+
private:
friend struct AwesomeEvent;
- enum Flags {
+ enum {
PLAYING = 1,
LOOPING = 2,
FIRST_FRAME = 4,
@@ -126,6 +129,7 @@ private:
int64_t mDurationUs;
uint32_t mFlags;
+ uint32_t mExtractorFlags;
int32_t mVideoWidth, mVideoHeight;
int64_t mTimeSourceDeltaUs;
diff --git a/media/libstagefright/include/VorbisExtractor.h b/media/libstagefright/include/VorbisExtractor.h
index 8e38a93..2bb7deb 100644
--- a/media/libstagefright/include/VorbisExtractor.h
+++ b/media/libstagefright/include/VorbisExtractor.h
@@ -38,6 +38,8 @@ struct VorbisExtractor : public MediaExtractor {
virtual sp<MetaData> getMetaData();
+ uint32_t flags() const;
+
protected:
virtual ~VorbisExtractor();