[vlc-devel] [PATCH 2/3] decoder: fix data race
Thomas Guillem
thomas at gllm.fr
Thu Jan 21 11:19:47 UTC 2021
owner->fmt need to be read with owner->lock held or from the module
thread.
---
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 3f03f36b091..48d41003562 100644
--- a/src/input/decoder.c
+++ b/src/input/decoder.c
@@ -2317,7 +2317,7 @@ void vlc_input_decoder_Flush( vlc_input_decoder_t *p_owner )
vlc_fifo_Unlock( p_owner->p_fifo );
- if ( p_owner->fmt.i_cat == VIDEO_ES )
+ if ( p_owner->dec.fmt_in.i_cat == VIDEO_ES )
{
/* Set the pool cancel state. This will unblock the module if it is
* waiting for new pictures (likely). This state will be reset back
--
2.29.2
More information about the vlc-devel
mailing list