demux: adaptive: missing break on es recycling (fix #16952)
authorFrancois Cartegnie <fcvlcdev@free.fr>
Sun, 15 May 2016 15:22:23 +0000 (17:22 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Sun, 15 May 2016 20:02:36 +0000 (22:02 +0200)
fixes erratic behaviour with multiple es per stream
when the non recycled es is destroyed and never recreated
and the recycled one creates another es

modules/demux/adaptive/plumbing/FakeESOut.cpp

index e10c90c..359240b 100644 (file)
@@ -114,6 +114,7 @@ void FakeESOut::createOrRecycleRealEsID( FakeESOutID *es_id )
                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;
         }
     }