[vlc-devel] [PATCH] demux: adaptive: fix es recyling

Zhao Zhili quinkblack at foxmail.com
Wed May 9 15:02:51 CEST 2018


---
 modules/demux/adaptive/plumbing/FakeESOut.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/demux/adaptive/plumbing/FakeESOut.cpp b/modules/demux/adaptive/plumbing/FakeESOut.cpp
index 73b3995..140f52d 100644
--- a/modules/demux/adaptive/plumbing/FakeESOut.cpp
+++ b/modules/demux/adaptive/plumbing/FakeESOut.cpp
@@ -136,8 +136,8 @@ void FakeESOut::createOrRecycleRealEsID( FakeESOutID *es_id )
             /* We need to enforce same selection when not reused
                Otherwise the es will select any other compatible track
                and will end this in a activate/select loop when reactivating a track */
-            es_out_Control( real_es_out, ES_OUT_GET_ES_STATE, cand->realESID(), &b_select );
-            break;
+            if( !b_select )
+                es_out_Control( real_es_out, ES_OUT_GET_ES_STATE, cand->realESID(), &b_select );
         }
     }
 
-- 
2.9.5





More information about the vlc-devel mailing list