[vlc-devel] [PATCH 1/2] decoder: adding missing continue's
RĂ©mi Denis-Courmont
remi at remlab.net
Sun Feb 9 14:34:32 CET 2020
If the FIFO was unlocked, the state is no longer known and must be
rechecked from the beginning. This is consistent with surrounding code
blocks.
---
src/input/decoder.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/input/decoder.c b/src/input/decoder.c
index bc279208ab..e2eac473c7 100644
--- a/src/input/decoder.c
+++ b/src/input/decoder.c
@@ -1695,6 +1695,7 @@ static void *DecoderThread( void *p_data )
vlc_restorecancel( canc );
vlc_fifo_Lock( p_owner->p_fifo );
+ continue;
}
if( delay != p_owner->delay )
@@ -1708,6 +1709,7 @@ static void *DecoderThread( void *p_data )
vlc_restorecancel( canc );
vlc_fifo_Lock( p_owner->p_fifo );
+ continue;
}
if( p_owner->paused && p_owner->frames_countdown == 0 )
--
2.25.0
More information about the vlc-devel
mailing list