Commit 60b89fc3 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

decoder: fix potential NULL dereference

(cherry picked from commit 7df464879acb66d7a0a19905e3d48b7e6b5fcf33)

Conflicts:
	src/input/decoder.c
parent 00113419
...@@ -2017,7 +2017,8 @@ static int aout_update_format( decoder_t *p_dec ) ...@@ -2017,7 +2017,8 @@ static int aout_update_format( decoder_t *p_dec )
p_owner->p_aout = p_aout; p_owner->p_aout = p_aout;
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