[vlc-devel] [PATCH] decoder: fix fmt check from vlc_input_decoder_HasFormatChanged

Thomas Guillem thomas at gllm.fr
Mon Jan 25 13:25:36 UTC 2021


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



More information about the vlc-devel mailing list