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@simphalempin.com>
return;
}
- int canc = vlc_savecancel ();
#ifdef UNDER_CE
# define CE_WRITE(str) WriteFile( QUEUE.logfile, \
str, strlen(str), &i_dummy, NULL );
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 : "",