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

Zhao Zhili quinkblack at foxmail.com
Wed May 9 15:32:44 CEST 2018



于 2018年5月9日 GMT+08:00 下午9:02:51, Zhao Zhili <quinkblack at foxmail.com> 写到:
>---
> 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 );
>         }
>     }
> 

If there is no esid is selected in the same category, should the new esid be unselected too?

-- 
使用 K-9 Mail 发送自我的Android设备。




More information about the vlc-devel mailing list