[vlc-commits] adaptive: schedule update against next segment time

Francois Cartegnie git at videolan.org
Thu May 19 19:14:37 CEST 2016


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu May 19 19:10:11 2016 +0200| [fdac7a03e9d0a7a210fbf81a2a9b1298e8c9ec7f] | committer: Francois Cartegnie

adaptive: schedule update against next segment time

avoids stalled playback when playback starts from end
of list.

refs http://rt-a.akamaihd.net/ch_01@325605/480p.m3u8

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=fdac7a03e9d0a7a210fbf81a2a9b1298e8c9ec7f
---

 modules/demux/adaptive/SegmentTracker.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/demux/adaptive/SegmentTracker.cpp b/modules/demux/adaptive/SegmentTracker.cpp
index ae6bc65..118a417 100644
--- a/modules/demux/adaptive/SegmentTracker.cpp
+++ b/modules/demux/adaptive/SegmentTracker.cpp
@@ -164,7 +164,7 @@ SegmentChunk * SegmentTracker::getNextChunk(bool switch_allowed, HTTPConnectionM
     {
         if(!rep->consistentSegmentNumber())
             curRepresentation->pruneBySegmentNumber(curNumber);
-        curRepresentation->scheduleNextUpdate(curNumber);
+        curRepresentation->scheduleNextUpdate(next);
     }
 
     if(!init_sent)



More information about the vlc-commits mailing list