Commit 2cc94e2e authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Qt4: Disable cancellation while writing a message to the log dialog

As pointed out by Laurent, cancellation was not safe here
parent 6f323e7a
......@@ -153,9 +153,11 @@ void MessagesDialog::sinkMessage (msg_cb_data_t *data, msg_item_t *item,
unsigned overruns)
{
MessagesDialog *self = data->self;
int canc = vlc_savecancel ();
QMutexLocker locker (&data->lock);
self->sinkMessage (item, overruns);
vlc_restorecancel (canc);
}
void MessagesDialog::sinkMessage (msg_item_t *item, unsigned)
......
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