summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/httplive/PlaylistFetcher.h
diff options
context:
space:
mode:
authorRobert Shih <robertshih@google.com>2014-08-29 19:01:29 -0700
committerRobert Shih <robertshih@google.com>2014-09-15 15:49:30 -0700
commitf78f62bd6b0a99747db53828d281a50b9270a646 (patch)
treee106a91ffab628cf27a8965ecf31b3dd74e959d1 /media/libstagefright/httplive/PlaylistFetcher.h
parentcb16968f593e4d58857c693c8ec6f2d2337f5512 (diff)
downloadframeworks_av-f78f62bd6b0a99747db53828d281a50b9270a646.zip
frameworks_av-f78f62bd6b0a99747db53828d281a50b9270a646.tar.gz
frameworks_av-f78f62bd6b0a99747db53828d281a50b9270a646.tar.bz2
PlaylistFetcher: find the correct sequence number to start fetching
- skip over bad segemnts - if we skipped too far into the future when adapting in live streams, adjust back Bug: 17141635 Bug: 17416657 Change-Id: I0877ceaf6e69cab751bf9e92579071f9e61643eb
Diffstat (limited to 'media/libstagefright/httplive/PlaylistFetcher.h')
-rw-r--r--media/libstagefright/httplive/PlaylistFetcher.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/media/libstagefright/httplive/PlaylistFetcher.h b/media/libstagefright/httplive/PlaylistFetcher.h
index daefb26..4ba37fa 100644
--- a/media/libstagefright/httplive/PlaylistFetcher.h
+++ b/media/libstagefright/httplive/PlaylistFetcher.h
@@ -104,7 +104,12 @@ private:
uint32_t mStreamTypeMask;
int64_t mStartTimeUs;
+
+ // Start time relative to the beginning of the first segment in the initial
+ // playlist. It's value is initialized to a non-negative value only when we are
+ // adapting or switching tracks.
int64_t mSegmentStartTimeUs;
+
ssize_t mDiscontinuitySeq;
bool mStartTimeUsRelative;
sp<AMessage> mStopParams; // message containing the latest timestamps we should fetch.