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

decoder: remove broken pause assertion (fix #6566)

Arguably, this patch is really just a work-around for a bug in the
E/S output.
parent 28767cee
......@@ -516,16 +516,17 @@ void input_DecoderChangePause( decoder_t *p_dec, bool b_paused, mtime_t i_date )
decoder_owner_sys_t *p_owner = p_dec->p_owner;
vlc_mutex_lock( &p_owner->lock );
/* Normally, p_owner->b_paused != b_paused here. But if a track is added
* while the input is paused (e.g. add sub file), then b_paused is
* (incorrectly) false. */
if( likely(p_owner->b_paused != b_paused) ) {
p_owner->b_paused = b_paused;
p_owner->pause.i_date = i_date;
p_owner->pause.i_ignore = 0;
vlc_cond_signal( &p_owner->wait_request );
assert( p_owner->b_paused != b_paused );
p_owner->b_paused = b_paused;
p_owner->pause.i_date = i_date;
p_owner->pause.i_ignore = 0;
vlc_cond_signal( &p_owner->wait_request );
DecoderOutputChangePause( p_dec, b_paused, i_date );
DecoderOutputChangePause( p_dec, b_paused, i_date );
}
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