[vlc-commits] demux: adaptive: reselect using SET_ES instead of SET_ES_STATE

Francois Cartegnie git at videolan.org
Thu Sep 28 13:00:48 CEST 2017


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Sep 28 12:21:43 2017 +0200| [9774655f01312d4ef2e2bbae0526b8f2f374a1f5] | committer: Francois Cartegnie

demux: adaptive: reselect using SET_ES instead of SET_ES_STATE

Otherwises other decoders are still active and then streams.
Also could trigger dual selected track states.

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

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

diff --git a/modules/demux/adaptive/plumbing/FakeESOut.cpp b/modules/demux/adaptive/plumbing/FakeESOut.cpp
index 13348de38b..bc1517ebc7 100644
--- a/modules/demux/adaptive/plumbing/FakeESOut.cpp
+++ b/modules/demux/adaptive/plumbing/FakeESOut.cpp
@@ -145,7 +145,7 @@ void FakeESOut::createOrRecycleRealEsID( FakeESOutID *es_id )
     {
         realid = es_out_Add( real_es_out, es_id->getFmt() );
         if( b_select )
-            es_out_Control( real_es_out, ES_OUT_SET_ES_STATE, realid, b_select );
+            es_out_Control( real_es_out, ES_OUT_SET_ES, realid );
     }
 
     es_id->setRealESID( realid );



More information about the vlc-commits mailing list