[vlc-commits] demux: adaptive: prevent seekable check fail after the last segment is demuxed

Zhao Zhili git at videolan.org
Wed Oct 25 13:04:14 CEST 2017


vlc | branch: master | Zhao Zhili <quinkblack at foxmail.com> | Tue Oct 24 00:15:15 2017 +0800| [6dee0982f92f648152872ebb2de5124aa92923de] | committer: Francois Cartegnie

demux: adaptive: prevent seekable check fail after the last segment is demuxed

Signed-off-by: Francois Cartegnie <fcvlcdev at free.fr>

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

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

diff --git a/modules/demux/adaptive/SegmentTracker.cpp b/modules/demux/adaptive/SegmentTracker.cpp
index d5b849375e..ce5db8874f 100644
--- a/modules/demux/adaptive/SegmentTracker.cpp
+++ b/modules/demux/adaptive/SegmentTracker.cpp
@@ -236,7 +236,6 @@ SegmentChunk * SegmentTracker::getNextChunk(bool switch_allowed,
     segment = rep->getNextSegment(BaseRepresentation::INFOTYPE_MEDIA, next, &next, &b_gap);
     if(!segment)
     {
-        reset();
         return NULL;
     }
 



More information about the vlc-commits mailing list