[vlc-commits] demux: adaptive: fix download from each adaptation set

Francois Cartegnie git at videolan.org
Thu Sep 28 00:19:09 CEST 2017


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Sep 27 19:44:37 2017 +0200| [bced5fe7a56bb8373be9100c3bf78bab179d3e06] | committer: Francois Cartegnie

demux: adaptive: fix download from each adaptation set

since gc does not happen after disabling,
es is still seen as selected.

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

 modules/demux/adaptive/Streams.cpp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/modules/demux/adaptive/Streams.cpp b/modules/demux/adaptive/Streams.cpp
index 9dbf7950aa..96543d3187 100644
--- a/modules/demux/adaptive/Streams.cpp
+++ b/modules/demux/adaptive/Streams.cpp
@@ -253,6 +253,10 @@ void AbstractStream::setDisabled(bool b)
 {
     if(disabled != b)
         segmentTracker->notifyBufferingState(!b);
+     /* Ensures unselected ES no longer
+      * have decoder/are seen as selected */
+    if(b)
+        fakeesout->recycleAll();
     disabled = b;
 }
 



More information about the vlc-commits mailing list