[vlc-devel] [PATCH 4/4] vlccore: pass a proper argument to vlc_cancel_self() in vlc_testcancel()

KO Myung-Hun komh78 at gmail.com
Wed Jan 30 08:34:53 CET 2013


This fixes the problem that SAP hangs on even if it has been canceled.
---
 src/os2/thread.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/os2/thread.c b/src/os2/thread.c
index 7e1f763..07b879d 100644
--- a/src/os2/thread.c
+++ b/src/os2/thread.c
@@ -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)
     {
-- 
1.7.3.2




More information about the vlc-devel mailing list