Commit 7db77e96 authored by Thomas Guillem's avatar Thomas Guillem

decoder: add a cancellation point in DecoderThread

When the thread is cancelled, it will be exited before processing all input
blocks.
parent 4aef58eb
......@@ -1416,6 +1416,8 @@ static void *DecoderThread( void *p_data )
vlc_cond_signal( &p_owner->wait_acknowledge );
vlc_mutex_unlock( &p_owner->lock );
vlc_fifo_CleanupPush( p_owner->p_fifo );
/* Check if thread is cancelled before processing input blocks */
vlc_testcancel();
vlc_cond_signal( &p_owner->wait_fifo );
......
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