[vlc-devel] [PATCH] WinCE: fix cancellation safety

Pierre Ynard linkfanel at yahoo.fr
Mon Dec 8 16:35:41 CET 2008


Fix cancellation safety on WinCE. This very obnoxious bug prevents
proper thread cancellation, and effectively causes lock-ups when trying
to stop playback.


diff --git a/src/misc/messages.c b/src/misc/messages.c
index 8f44837..55d8cdd 100644
--- a/src/misc/messages.c
+++ b/src/misc/messages.c
@@ -586,8 +586,8 @@ static void PrintMsg ( vlc_object_t * p_this, msg_item_t * p_item )
 #   if defined(WIN32)
     fflush( stderr );
 #   endif
-    vlc_restorecancel (canc);
 #endif
+    vlc_restorecancel (canc);
 }
 
 static msg_context_t* GetContext(void)


Regards,

-- 
Pierre Ynard
"Une âme dans un corps, c'est comme un dessin sur une feuille de papier."



More information about the vlc-devel mailing list