[vlc-commits] decoder: adding missing continue's

Rémi Denis-Courmont git at videolan.org
Mon Feb 10 19:04:08 CET 2020


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Feb  9 13:12:09 2020 +0200| [820ac2aa167358224e1a2a85ef2ead40b9383319] | committer: Rémi Denis-Courmont

decoder: adding missing continue's

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.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=820ac2aa167358224e1a2a85ef2ead40b9383319
---

 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 )



More information about the vlc-commits mailing list