[vlc-devel] commit: WinCE: fix cancellation safety (Pierre Ynard )

git version control git at videolan.org
Tue Dec 9 17:30:57 CET 2008


vlc | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Tue Dec  9 11:37:39 2008 +0100| [7b0c6253fb881ee0510c6bb5cfd14ba43e5a7bcd] | committer: Rémi Denis-Courmont 

WinCE: fix cancellation safety

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

Signed-off-by: Rémi Denis-Courmont <rdenis at simphalempin.com>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7b0c6253fb881ee0510c6bb5cfd14ba43e5a7bcd
---

 src/misc/messages.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/misc/messages.c b/src/misc/messages.c
index 8f44837..a1b9530 100644
--- a/src/misc/messages.c
+++ b/src/misc/messages.c
@@ -556,7 +556,6 @@ static void PrintMsg ( vlc_object_t * p_this, msg_item_t * p_item )
             return;
     }
 
-    int canc = vlc_savecancel ();
 #ifdef UNDER_CE
 #   define CE_WRITE(str) WriteFile( QUEUE.logfile, \
                                     str, strlen(str), &i_dummy, NULL );
@@ -570,6 +569,7 @@ static void PrintMsg ( vlc_object_t * p_this, msg_item_t * p_item )
     FlushFileBuffers( QUEUE.logfile );
 
 #else
+    int canc = vlc_savecancel ();
     /* Send the message to stderr */
     utf8_fprintf( stderr, "[%s%p%s] %s%s%s %s%s: %s%s%s\n",
                   priv->b_color ? GREEN : "",




More information about the vlc-devel mailing list