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

Zhao Zhili quinkblack at foxmail.com
Mon May 14 15:19:53 CEST 2018



On 2018年05月14日 18:31, Francois Cartegnie wrote:
> Le 09/05/2018 à 18:30, Zhao Zhili a écrit :
> To me, seems you're trying to fix regressions introduced by
> 5ff52a41a8e62ee0e818676be066da83a53d8ef4
> where the decoder is no longer selected after a failed restart
>
>

I'm trying to fix this bug:
Audio track not preserved when seeking .m3u8
https://trac.videolan.org/vlc/ticket/20436

As Rémi said, it's "contradiction between level-triggered
automation (in this case, the ES automatic selection) and
edge-triggered manual override (in this case, disabling an
automatically selected ES)".

I have tried to revert 5ff52a41a and test, it's not related to
the bug.

The patch I submitted is a by-product which is not related to the
bug too. I didn't get the point why break the loop instead of
continue. I have tested with HLS which has multiple audio tracks
in single TS, and select the second or the third track manually.
The loop breaks with the first audio track which not looks right.


More information about the vlc-devel mailing list