[vlc-devel] [PATCH] decoder: fix abort on vout failure
Thomas Guillem
thomas at gllm.fr
Thu Jan 14 11:02:48 UTC 2021
Don't notify the format changed if the output creation failed.
Regression from 0abed25515a492896c89cf36ab1e4befc7dd23b6
Fixes #25387
---
src/input/decoder.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/src/input/decoder.c b/src/input/decoder.c
index f2f643fb656..d475f3d207b 100644
--- a/src/input/decoder.c
+++ b/src/input/decoder.c
@@ -2545,6 +2545,14 @@ bool vlc_input_decoder_HasFormatChanged( vlc_input_decoder_t *p_owner,
return false;
vlc_mutex_lock( &p_owner->lock );
+
+ if( p_owner->fmt.i_cat == UNKNOWN_ES )
+ {
+ /* The format changed but the output creation failed */
+ vlc_mutex_unlock( &p_owner->lock );
+ return false;
+ }
+
if( p_fmt != NULL )
es_format_Copy( p_fmt, &p_owner->fmt );
--
2.29.2
More information about the vlc-devel
mailing list