summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/include/MPEG2TSExtractor.h
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2010-10-14 23:22:21 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2010-10-14 23:22:21 -0700
commitd6119356f45c9c57cac812357d969ecc3001087e (patch)
tree571a3fd12bab8ff32a863507d4e907e750456af9 /media/libstagefright/include/MPEG2TSExtractor.h
parent11b72e19970f620adfb1aa458b45ff06cec77f10 (diff)
parent43024e1f4953d9b8891b7b72f10e76f11812e772 (diff)
downloadframeworks_av-d6119356f45c9c57cac812357d969ecc3001087e.zip
frameworks_av-d6119356f45c9c57cac812357d969ecc3001087e.tar.gz
frameworks_av-d6119356f45c9c57cac812357d969ecc3001087e.tar.bz2
am 28b93967: am 165c6579: Merge "HTTP Live content that are tagged as complete are now seekable." into gingerbread
Merge commit '28b93967d0e702304c7edec854a29d5ab88bfce0' * commit '28b93967d0e702304c7edec854a29d5ab88bfce0': HTTP Live content that are tagged as complete are now seekable.
Diffstat (limited to 'media/libstagefright/include/MPEG2TSExtractor.h')
-rw-r--r--media/libstagefright/include/MPEG2TSExtractor.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/media/libstagefright/include/MPEG2TSExtractor.h b/media/libstagefright/include/MPEG2TSExtractor.h
index 1bf4cd1..d83b538 100644
--- a/media/libstagefright/include/MPEG2TSExtractor.h
+++ b/media/libstagefright/include/MPEG2TSExtractor.h
@@ -15,6 +15,7 @@ struct ATSParser;
struct DataSource;
struct MPEG2TSSource;
struct String8;
+struct LiveSource;
struct MPEG2TSExtractor : public MediaExtractor {
MPEG2TSExtractor(const sp<DataSource> &source);
@@ -25,16 +26,19 @@ struct MPEG2TSExtractor : public MediaExtractor {
virtual sp<MetaData> getMetaData();
- virtual uint32_t flags() const {
- return CAN_PAUSE;
- }
+ virtual uint32_t flags() const;
+
+ void setLiveSource(const sp<LiveSource> &liveSource);
+ void seekTo(int64_t seekTimeUs);
private:
friend struct MPEG2TSSource;
- Mutex mLock;
+ mutable Mutex mLock;
sp<DataSource> mDataSource;
+ sp<LiveSource> mLiveSource;
+
sp<ATSParser> mParser;
Vector<sp<AnotherPacketSource> > mSourceImpls;