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

decoder: fix data race in input_DecoderChangePause()

See also 0fde3bea.
parent 7a76a7a7
...@@ -491,12 +491,12 @@ void input_DecoderChangePause( decoder_t *p_dec, bool b_paused, mtime_t i_date ) ...@@ -491,12 +491,12 @@ void input_DecoderChangePause( decoder_t *p_dec, bool b_paused, mtime_t i_date )
* - for sout it is useless * - for sout it is useless
* - for subs, it is done by the vout * - for subs, it is done by the vout
*/ */
if( p_dec->fmt_out.i_cat == AUDIO_ES ) if( p_owner->fmt.i_cat == AUDIO_ES )
{ {
if( p_owner->p_aout ) if( p_owner->p_aout )
aout_DecChangePause( p_owner->p_aout, b_paused, i_date ); aout_DecChangePause( p_owner->p_aout, b_paused, i_date );
} }
else if( p_dec->fmt_out.i_cat == VIDEO_ES ) else if( p_owner->fmt.i_cat == VIDEO_ES )
{ {
if( p_owner->p_vout ) if( p_owner->p_vout )
vout_ChangePause( p_owner->p_vout, b_paused, i_date ); vout_ChangePause( p_owner->p_vout, b_paused, i_date );
......
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