Commit 16f5c8b8 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

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.
parent d9b829de
......@@ -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 ();
}
......
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