[vlc-devel] [PATCH 5/5] demux: adaptive: prevent seekable check fail after the last segment is demuxed

Zhao Zhili quinkblack at foxmail.com
Mon Oct 23 18:15:15 CEST 2017


---
 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;
     }
 
-- 
2.14.2



More information about the vlc-devel mailing list