[vlc-devel] [RFC PATCH 5/5] decoder: don't wait if paused

Thomas Guillem thomas at gllm.fr
Fri Nov 6 14:48:47 CET 2015


---
 src/input/decoder.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/input/decoder.c b/src/input/decoder.c
index ec3d6da..01bd45e 100644
--- a/src/input/decoder.c
+++ b/src/input/decoder.c
@@ -2146,7 +2146,8 @@ void input_DecoderWait( decoder_t *p_dec )
     while( !p_owner->b_has_data )
     {
         vlc_fifo_Lock( p_owner->p_fifo );
-        if( p_owner->b_idle && vlc_fifo_IsEmpty( p_owner->p_fifo ) )
+        if( ( p_owner->b_idle && vlc_fifo_IsEmpty( p_owner->p_fifo ) )
+         || p_owner->paused )
         {
             msg_Warn( p_dec, "can't wait without data to decode" );
             vlc_fifo_Unlock( p_owner->p_fifo );
-- 
2.1.4



More information about the vlc-devel mailing list