Commit c12edba9 authored by Laurent Aimar's avatar Laurent Aimar

Ensure fast fetcher/preparser thread cancelation.

parent 35f17389
......@@ -366,6 +366,9 @@ static void *Thread( void *p_data )
{
input_item_t *p_item;
/* Be sure to be cancellable before our queue is empty */
vlc_testcancel();
/* */
vlc_mutex_lock( &p_fetcher->lock );
mutex_cleanup_push( &p_fetcher->lock );
......
......@@ -187,6 +187,9 @@ static void *Thread( void *data )
{
input_item_t *p_current;
/* Be sure to be cancellable before our queue is empty */
vlc_testcancel();
/* */
vlc_mutex_lock( &p_preparser->lock );
mutex_cleanup_push( &p_preparser->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