[vlc-commits] demux: adaptive: rank up extra buffering to 60s

Francois Cartegnie git at videolan.org
Wed Feb 1 16:11:27 CET 2017


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Feb  1 13:42:14 2017 +0100| [c57adacef53998dfa375cc4c898d511ad16f434b] | committer: Francois Cartegnie

demux: adaptive: rank up extra buffering to 60s

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

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

diff --git a/modules/demux/adaptive/playlist/AbstractPlaylist.cpp b/modules/demux/adaptive/playlist/AbstractPlaylist.cpp
index 75a3848..c89527a 100644
--- a/modules/demux/adaptive/playlist/AbstractPlaylist.cpp
+++ b/modules/demux/adaptive/playlist/AbstractPlaylist.cpp
@@ -92,7 +92,7 @@ mtime_t AbstractPlaylist::getMinBuffering() const
 mtime_t AbstractPlaylist::getMaxBuffering() const
 {
     const mtime_t minbuf = getMinBuffering();
-    return std::min(minbuf * 3 / 2, minbuf + 6 * CLOCK_FREQ);
+    return std::max(minbuf, 60 * CLOCK_FREQ);
 }
 
 Url AbstractPlaylist::getUrlSegment() const



More information about the vlc-commits mailing list