vlc | branch: master | Steve Lhomme <[email protected]> | Fri Jul  6 08:49:44 
2018 +0200| [e403178df27479a033a2d528c93a8da2f0a9d803] | committer: Steve Lhomme

demux:smooth: use std::max() to compute the minimum buffer duration

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

 modules/demux/smooth/SmoothManager.cpp | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/modules/demux/smooth/SmoothManager.cpp 
b/modules/demux/smooth/SmoothManager.cpp
index 7251efd199..0cd159013d 100644
--- a/modules/demux/smooth/SmoothManager.cpp
+++ b/modules/demux/smooth/SmoothManager.cpp
@@ -135,8 +135,7 @@ void SmoothManager::scheduleNextUpdate()
     if(playlist->minUpdatePeriod.Get() > minbuffer)
         minbuffer = playlist->minUpdatePeriod.Get();
 
-    if(minbuffer < VLC_TICK_FROM_SEC(5))
-        minbuffer = VLC_TICK_FROM_SEC(5);
+    minbuffer = std::max(minbuffer, VLC_TICK_FROM_SEC(5));
 
     nextPlaylistupdate = now + minbuffer / CLOCK_FREQ;
 

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to