[vlc-devel] [PATCH 1/2] decoder: remove unnecessary set to idle
Thomas Guillem
thomas at gllm.fr
Fri Dec 11 11:35:48 CET 2015
if p_owner->paused is true, input_DecoderWait will already be aborted, no need
to set idle to true.
---
src/input/decoder.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/input/decoder.c b/src/input/decoder.c
index c6784a0..f8b4b46 100644
--- a/src/input/decoder.c
+++ b/src/input/decoder.c
@@ -1471,10 +1471,9 @@ static void *DecoderThread( void *p_data )
}
if( p_owner->paused && p_owner->frames_countdown == 0 )
- { /* Wait for resumption from pause */
- p_owner->b_idle = true;
+ {
+ /* Wait for resumption from pause */
vlc_fifo_Wait( p_owner->p_fifo );
- p_owner->b_idle = false;
continue;
}
--
2.1.4
More information about the vlc-devel
mailing list