Commit 7df46487 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

decoder: fix potential NULL dereference

parent 74c4dd39
...@@ -2003,7 +2003,8 @@ static int aout_update_format( decoder_t *p_dec ) ...@@ -2003,7 +2003,8 @@ static int aout_update_format( decoder_t *p_dec )
DecoderUpdateFormatLocked( p_dec ); DecoderUpdateFormatLocked( p_dec );
if( unlikely(p_owner->b_paused) ) /* fake pause if needed */ if( unlikely(p_owner->b_paused) && p_aout != NULL )
/* fake pause if needed */
aout_DecChangePause( p_aout, true, mdate() ); aout_DecChangePause( p_aout, true, mdate() );
vlc_mutex_unlock( &p_owner->lock ); vlc_mutex_unlock( &p_owner->lock );
......
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