[vlc-commits] decoder: inline DecoderSignalWait()
Rémi Denis-Courmont
git at videolan.org
Sat Mar 21 19:56:36 CET 2015
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Mar 21 20:38:12 2015 +0200| [9531a84215f0fe0d5fb7a5165fab55a9d936494e] | committer: Rémi Denis-Courmont
decoder: inline DecoderSignalWait()
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9531a84215f0fe0d5fb7a5165fab55a9d936494e
---
src/input/decoder.c | 23 +++++++----------------
1 file changed, 7 insertions(+), 16 deletions(-)
diff --git a/src/input/decoder.c b/src/input/decoder.c
index 9e1e599..aa758b6 100644
--- a/src/input/decoder.c
+++ b/src/input/decoder.c
@@ -169,21 +169,6 @@ static bool DecoderIsFlushing( decoder_t *p_dec )
return b_flushing;
}
-static void DecoderSignalWait( decoder_t *p_dec )
-{
- decoder_owner_sys_t *p_owner = p_dec->p_owner;
-
- vlc_mutex_lock( &p_owner->lock );
-
- if( p_owner->b_waiting )
- {
- p_owner->b_has_data = true;
- vlc_cond_signal( &p_owner->wait_acknowledge );
- }
-
- vlc_mutex_unlock( &p_owner->lock );
-}
-
static block_t *DecoderBlockFlushNew()
{
block_t *p_null = block_Alloc( 128 );
@@ -450,7 +435,13 @@ static picture_t *vout_new_buffer( decoder_t *p_dec )
return p_picture;
/* */
- DecoderSignalWait( p_dec );
+ vlc_mutex_lock( &p_owner->lock );
+ if( p_owner->b_waiting )
+ {
+ p_owner->b_has_data = true;
+ vlc_cond_signal( &p_owner->wait_acknowledge );
+ }
+ vlc_mutex_unlock( &p_owner->lock );
/* Check the decoder doesn't leak pictures */
vout_FixLeaks( p_owner->p_vout );
More information about the vlc-commits
mailing list