Commit cfe2c864 authored by KO Myung-Hun's avatar KO Myung-Hun Committed by Jean-Baptiste Kempf

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: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 5f2c31f4
...@@ -605,7 +605,7 @@ void vlc_testcancel (void) ...@@ -605,7 +605,7 @@ void vlc_testcancel (void)
/* This check is needed for the case that vlc_cancel() is followed by /* This check is needed for the case that vlc_cancel() is followed by
* vlc_testcancel() without any cancellation point */ * vlc_testcancel() without any cancellation point */
if( DosWaitEventSem( th->cancel_event, 0 ) == NO_ERROR ) if( DosWaitEventSem( th->cancel_event, 0 ) == NO_ERROR )
vlc_cancel_self( NULL ); vlc_cancel_self( th );
if (th->killable && th->killed) if (th->killable && th->killed)
{ {
......
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