[vlc-commits] demux: adaptive: rely on live offset for edge control

Francois Cartegnie git at videolan.org
Mon May 18 20:58:53 CEST 2020


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon May 18 15:39:59 2020 +0200| [75c2df6cee84452ac65038ddccaff2a2c18bbb7c] | committer: Francois Cartegnie

demux: adaptive: rely on live offset for edge control

fixes start case when min buffering < playlist duration

refs VLCKit/-/issues/374

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

 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 5a675481d7..1a5f857d42 100644
--- a/modules/demux/adaptive/SegmentTracker.cpp
+++ b/modules/demux/adaptive/SegmentTracker.cpp
@@ -416,7 +416,7 @@ void SegmentTracker::registerListener(SegmentTrackerListenerInterface *listener)
 bool SegmentTracker::bufferingAvailable() const
 {
     if(adaptationSet->getPlaylist()->isLive())
-        return bufferingLogic->getMinBuffering(adaptationSet->getPlaylist()) <= getMinAheadTime();
+        return getMinAheadTime() > 0;
     return true;
 }
 



More information about the vlc-commits mailing list