Commit 6787c516 authored by Rafaël Carré's avatar Rafaël Carré

logger: disable thread cancellation in callback

fix a deadlock where the thread would be cancelled while still holding
message bank lock
parent 809ee80a
......@@ -374,6 +374,8 @@ static void Overflow (msg_cb_data_t *p_sys, msg_item_t *p_item, unsigned overrun
if (verbosity < priority)
return;
int canc = vlc_savecancel();
switch( p_sys->i_mode )
{
case MODE_HTML:
......@@ -389,6 +391,8 @@ static void Overflow (msg_cb_data_t *p_sys, msg_item_t *p_item, unsigned overrun
TextPrint( p_item, p_sys->p_file );
break;
}
vlc_restorecancel( canc );
}
static const char ppsz_type[4][11] = {
......
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