diff options
author | Andreas Huber <andih@google.com> | 2010-05-06 10:18:05 -0700 |
---|---|---|
committer | Andreas Huber <andih@google.com> | 2010-05-06 10:31:57 -0700 |
commit | 62f7ffe106a7126ef31b199552c5cfc6599bc3d1 (patch) | |
tree | 7bd9fc2fe4a46740aec9862b7ff8f33630e8ab12 /include/media | |
parent | b5fa4dff0c4756ef7868926d4f373645ac0b00a9 (diff) | |
download | frameworks_base-62f7ffe106a7126ef31b199552c5cfc6599bc3d1.zip frameworks_base-62f7ffe106a7126ef31b199552c5cfc6599bc3d1.tar.gz frameworks_base-62f7ffe106a7126ef31b199552c5cfc6599bc3d1.tar.bz2 |
Disable vorbis seek when streaming from localhost.
Change-Id: Icda523ae1c89e26482f1c1767fe3a8b9222bb30f
related-to-bug: 2654400
Diffstat (limited to 'include/media')
-rw-r--r-- | include/media/stagefright/DataSource.h | 3 | ||||
-rw-r--r-- | include/media/stagefright/HTTPDataSource.h | 4 | ||||
-rw-r--r-- | include/media/stagefright/MediaExtractor.h | 10 |
3 files changed, 13 insertions, 4 deletions
diff --git a/include/media/stagefright/DataSource.h b/include/media/stagefright/DataSource.h index 913da47..6f7dc38 100644 --- a/include/media/stagefright/DataSource.h +++ b/include/media/stagefright/DataSource.h @@ -33,7 +33,8 @@ class String8; class DataSource : public RefBase { public: enum Flags { - kWantsPrefetching = 1, + kWantsPrefetching = 1, + kStreamedFromLocalHost = 2, }; static sp<DataSource> CreateFromURI( diff --git a/include/media/stagefright/HTTPDataSource.h b/include/media/stagefright/HTTPDataSource.h index ea31942..f3b44fd 100644 --- a/include/media/stagefright/HTTPDataSource.h +++ b/include/media/stagefright/HTTPDataSource.h @@ -45,9 +45,7 @@ public: virtual status_t getSize(off_t *size); - virtual uint32_t flags() { - return kWantsPrefetching; - } + virtual uint32_t flags(); protected: virtual ~HTTPDataSource(); diff --git a/include/media/stagefright/MediaExtractor.h b/include/media/stagefright/MediaExtractor.h index 0ed7b40..21338ca 100644 --- a/include/media/stagefright/MediaExtractor.h +++ b/include/media/stagefright/MediaExtractor.h @@ -44,6 +44,16 @@ public: // returns an empty metadata object. virtual sp<MetaData> getMetaData(); + enum Flags { + CAN_SEEK_BACKWARD = 1, + CAN_SEEK_FORWARD = 2, + CAN_PAUSE = 4, + }; + + // If subclasses do _not_ override this, the default is + // CAN_SEEK_BACKWARD | CAN_SEEK_FORWARD | CAN_PAUSE + virtual uint32_t flags() const; + protected: MediaExtractor() {} virtual ~MediaExtractor() {} |