mirror of
https://github.com/videolan/vlc.git
synced 2024-12-12 03:06:13 +08:00
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:
parent
d9b829de55
commit
16f5c8b85a
@ -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 ();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user