1
mirror of https://code.videolan.org/videolan/vlc synced 2024-10-07 03:56:28 +02:00

vlccore: pass a proper argument to vlc_cancel_self() in vlc_testcancel()

This fixes the problem that SAP hangs on even if it has been canceled.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
This commit is contained in:
KO Myung-Hun 2013-01-30 16:34:53 +09:00 committed by Jean-Baptiste Kempf
parent 5f2c31f4c1
commit cfe2c864c2

View File

@ -605,7 +605,7 @@ void vlc_testcancel (void)
/* This check is needed for the case that vlc_cancel() is followed by
* vlc_testcancel() without any cancellation point */
if( DosWaitEventSem( th->cancel_event, 0 ) == NO_ERROR )
vlc_cancel_self( NULL );
vlc_cancel_self( th );
if (th->killable && th->killed)
{