]> git.sesse.net Git - vlc/commitdiff
vlccore: pass a proper argument to vlc_cancel_self() in vlc_testcancel()
authorKO Myung-Hun <komh78@gmail.com>
Wed, 30 Jan 2013 07:34:53 +0000 (16:34 +0900)
committerJean-Baptiste Kempf <jb@videolan.org>
Wed, 30 Jan 2013 14:41:53 +0000 (15:41 +0100)
This fixes the problem that SAP hangs on even if it has been canceled.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
src/os2/thread.c

index 7e1f76356e2a86b76940bff6ea61abb70c023e06..07b879d70e92ce26f8fb9a11ff4c717a10d1f131 100644 (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)
     {