Commit 0c24ead9 authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

Core: Closed Captions memleak

parent 839552a5
...@@ -1253,6 +1253,7 @@ static void DecoderGetCc( decoder_t *p_dec, decoder_t *p_dec_cc ) ...@@ -1253,6 +1253,7 @@ static void DecoderGetCc( decoder_t *p_dec, decoder_t *p_dec_cc )
decoder_owner_sys_t *p_owner = p_dec->p_owner; decoder_owner_sys_t *p_owner = p_dec->p_owner;
block_t *p_cc; block_t *p_cc;
bool pb_present[4]; bool pb_present[4];
bool b_processed = false;
int i; int i;
int i_cc_decoder; int i_cc_decoder;
...@@ -1284,8 +1285,12 @@ static void DecoderGetCc( decoder_t *p_dec, decoder_t *p_dec_cc ) ...@@ -1284,8 +1285,12 @@ static void DecoderGetCc( decoder_t *p_dec, decoder_t *p_dec_cc )
else else
DecoderProcess( p_owner->cc.pp_decoder[i], p_cc ); DecoderProcess( p_owner->cc.pp_decoder[i], p_cc );
i_cc_decoder--; i_cc_decoder--;
b_processed = true;
} }
vlc_mutex_unlock( &p_owner->lock ); vlc_mutex_unlock( &p_owner->lock );
if( !b_processed )
block_Release( p_cc );
} }
static void DecoderPlayVideo( decoder_t *p_dec, picture_t *p_picture, static void DecoderPlayVideo( decoder_t *p_dec, picture_t *p_picture,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment