summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/mpeg2ts/AnotherPacketSource.h
diff options
context:
space:
mode:
authorChong Zhang <chz@google.com>2015-03-20 22:36:19 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-03-20 22:36:19 +0000
commit514d7af22c5d6526309e71fadcff42b072c30241 (patch)
tree290d9e24fe6326b6a9deac036d4524edd50375ce /media/libstagefright/mpeg2ts/AnotherPacketSource.h
parent0e4421286b92a81e952f53210227adbf05d97c25 (diff)
parenta48d372833ccec13c96ece9efcc226e8beac7f59 (diff)
downloadframeworks_av-514d7af22c5d6526309e71fadcff42b072c30241.zip
frameworks_av-514d7af22c5d6526309e71fadcff42b072c30241.tar.gz
frameworks_av-514d7af22c5d6526309e71fadcff42b072c30241.tar.bz2
Merge "HLS: allow pause/resume in the middle of a segment"
Diffstat (limited to 'media/libstagefright/mpeg2ts/AnotherPacketSource.h')
-rw-r--r--media/libstagefright/mpeg2ts/AnotherPacketSource.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/media/libstagefright/mpeg2ts/AnotherPacketSource.h b/media/libstagefright/mpeg2ts/AnotherPacketSource.h
index 809a858..d4fde7c 100644
--- a/media/libstagefright/mpeg2ts/AnotherPacketSource.h
+++ b/media/libstagefright/mpeg2ts/AnotherPacketSource.h
@@ -43,8 +43,12 @@ struct AnotherPacketSource : public MediaSource {
void clear();
+ // Returns true if we have any packets including discontinuities
bool hasBufferAvailable(status_t *finalResult);
+ // Returns true if we have packets that's not discontinuities
+ bool hasDataBufferAvailable(status_t *finalResult);
+
// Returns the difference between the last and the first queued
// presentation timestamps since the last discontinuity (if any).
int64_t getBufferedDurationUs(status_t *finalResult);