vlc_thread_fatal: disable thread cancellation

It shouldn't matter much when we get to such a sorry code path, but
better safe than sorry.
This commit is contained in:
Rémi Denis-Courmont 2009-10-20 23:37:36 +03:00
parent d9b829de55
commit 16f5c8b85a

View File

@ -89,6 +89,7 @@ static void
vlc_thread_fatal (const char *action, int error,
const char *function, const char *file, unsigned line)
{
int canc = vlc_savecancel ();
fprintf (stderr, "LibVLC fatal error %s (%d) in thread %lu ",
action, error, vlc_threadid ());
vlc_trace (function, file, line);
@ -119,6 +120,7 @@ vlc_thread_fatal (const char *action, int error,
#endif
fflush (stderr);
vlc_restorecancel (canc);
abort ();
}