[vlc-devel] [PATCH] decoder: fix fmt check from vlc_input_decoder_HasFormatChanged
Alexandre Janniaux
ajanni at videolabs.io
Mon Jan 25 13:33:32 UTC 2021
Hi,
Confirming it fixes my additional report on #25387.
Regards,
--
Alexandre Janniaux
Videolabs
On Mon, Jan 25, 2021 at 02:25:36PM +0100, Thomas Guillem wrote:
> The fmt that need to be tested is owner->fmt in that case.
>
> Regression from 202fd85717fc3ce91ce0a4cd8a07006dd5f4c866
>
> Re Fixes #25387
> ---
> src/input/decoder.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/input/decoder.c b/src/input/decoder.c
> index 120392f4c76..be048188595 100644
> --- a/src/input/decoder.c
> +++ b/src/input/decoder.c
> @@ -2548,7 +2548,7 @@ bool vlc_input_decoder_HasFormatChanged( vlc_input_decoder_t *p_owner,
>
> vlc_mutex_lock( &p_owner->lock );
>
> - if( p_owner->dec.fmt_in.i_cat == UNKNOWN_ES )
> + if( p_owner->fmt.i_cat == UNKNOWN_ES )
> {
> /* The format changed but the output creation failed */
> vlc_mutex_unlock( &p_owner->lock );
> --
> 2.29.2
>
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel
More information about the vlc-devel
mailing list