[vlc-commits] demux: smooth: don't compute ahead time from disabled steams

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


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Feb  1 14:09:00 2017 +0100| [00834cac6448ad744b5100ec55733effdd14a4e1] | committer: Francois Cartegnie

demux: smooth: don't compute ahead time from disabled steams

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

 modules/demux/smooth/SmoothManager.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/demux/smooth/SmoothManager.cpp b/modules/demux/smooth/SmoothManager.cpp
index 5644f58..469fa46 100644
--- a/modules/demux/smooth/SmoothManager.cpp
+++ b/modules/demux/smooth/SmoothManager.cpp
@@ -123,6 +123,8 @@ void SmoothManager::scheduleNextUpdate()
     for(it=streams.begin(); it!=streams.end(); ++it)
     {
         const AbstractStream *st = *it;
+        if(st->isDisabled() || !st->isSelected())
+            continue;
         const mtime_t m = st->getMinAheadTime();
         if(m > 0 && (m < minbuffer || minbuffer == 0))
             minbuffer = m;



More information about the vlc-commits mailing list