[vlc-commits] demux: adaptive: fix es recyling
Zhao Zhili
git at videolan.org
Thu May 24 12:09:53 CEST 2018
vlc | branch: master | Zhao Zhili <quinkblack at foxmail.com> | Wed May 9 21:02:51 2018 +0800| [2874f912656f202f9bb39a739c8da13bc9c07fb5] | committer: Francois Cartegnie
demux: adaptive: fix es recyling
Signed-off-by: Francois Cartegnie <fcvlcdev at free.fr>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2874f912656f202f9bb39a739c8da13bc9c07fb5
---
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 017e857ed8..ffd1d91de7 100644
--- a/modules/demux/adaptive/plumbing/FakeESOut.cpp
+++ b/modules/demux/adaptive/plumbing/FakeESOut.cpp
@@ -138,8 +138,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 );
}
}
More information about the vlc-commits
mailing list