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

Francois Cartegnie git at videolan.org
Tue May 19 12:28:30 CEST 2020


vlc/vlc-3.0 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon May 18 15:39:59 2020 +0200| [5928579a9a05d58b1fe3ce3dc9cb97611da01a77] | committer: Francois Cartegnie

demux: adaptive: rely on live offset for edge control

fixes start case when min buffering < playlist duration

refs VLCKit/-/issues/374

(cherry picked from commit 75c2df6cee84452ac65038ddccaff2a2c18bbb7c)

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

 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 79c45112e5..27c56028e4 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