Commit 7b0c6253 authored by Pierre Ynard's avatar Pierre Ynard Committed by 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: default avatarRémi Denis-Courmont <rdenis@simphalempin.com>
parent 731c247b
...@@ -556,7 +556,6 @@ static void PrintMsg ( vlc_object_t * p_this, msg_item_t * p_item ) ...@@ -556,7 +556,6 @@ static void PrintMsg ( vlc_object_t * p_this, msg_item_t * p_item )
return; return;
} }
int canc = vlc_savecancel ();
#ifdef UNDER_CE #ifdef UNDER_CE
# define CE_WRITE(str) WriteFile( QUEUE.logfile, \ # define CE_WRITE(str) WriteFile( QUEUE.logfile, \
str, strlen(str), &i_dummy, NULL ); str, strlen(str), &i_dummy, NULL );
...@@ -570,6 +569,7 @@ static void PrintMsg ( vlc_object_t * p_this, msg_item_t * p_item ) ...@@ -570,6 +569,7 @@ static void PrintMsg ( vlc_object_t * p_this, msg_item_t * p_item )
FlushFileBuffers( QUEUE.logfile ); FlushFileBuffers( QUEUE.logfile );
#else #else
int canc = vlc_savecancel ();
/* Send the message to stderr */ /* Send the message to stderr */
utf8_fprintf( stderr, "[%s%p%s] %s%s%s %s%s: %s%s%s\n", utf8_fprintf( stderr, "[%s%p%s] %s%s%s %s%s: %s%s%s\n",
priv->b_color ? GREEN : "", priv->b_color ? GREEN : "",
......
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