Commit cbaad1b2 authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

Core: Closed Captions memleak

(cherry picked from commit 0c24ead9)
Signed-off-by: default avatarDerk-Jan Hartman <hartman@videolan.org>
parent 9e1f1018
......@@ -1266,6 +1266,7 @@ static void DecoderGetCc( decoder_t *p_dec, decoder_t *p_dec_cc )
decoder_owner_sys_t *p_owner = p_dec->p_owner;
block_t *p_cc;
bool pb_present[4];
bool b_processed = false;
int i;
int i_cc_decoder;
......@@ -1297,8 +1298,12 @@ static void DecoderGetCc( decoder_t *p_dec, decoder_t *p_dec_cc )
else
DecoderProcess( p_owner->cc.pp_decoder[i], p_cc );
i_cc_decoder--;
b_processed = true;
}
vlc_mutex_unlock( &p_owner->lock );
if( !b_processed )
block_Release( p_cc );
}
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