Commit 0dbfdd87 authored by Laurent Aimar's avatar Laurent Aimar

Fixed a potential vout object leak in decoder.

parent 8eb251e5
...@@ -2043,10 +2043,10 @@ static void DeleteDecoder( decoder_t * p_dec ) ...@@ -2043,10 +2043,10 @@ static void DeleteDecoder( decoder_t * p_dec )
vout_thread_t *p_vout; vout_thread_t *p_vout;
p_vout = vlc_object_find( p_dec, VLC_OBJECT_VOUT, FIND_ANYWHERE ); p_vout = vlc_object_find( p_dec, VLC_OBJECT_VOUT, FIND_ANYWHERE );
if( p_vout && p_owner->p_spu_vout == p_vout ) if( p_vout )
{ {
spu_Control( p_vout->p_spu, SPU_CHANNEL_CLEAR, if( p_owner->p_spu_vout == p_vout )
p_owner->i_spu_channel ); spu_Control( p_vout->p_spu, SPU_CHANNEL_CLEAR, p_owner->i_spu_channel );
vlc_object_release( p_vout ); vlc_object_release( p_vout );
} }
} }
......
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