msg: fix missing wakeup callback in terminal-default log level

In the referenced commit, I forgot about this part, and a client which
tried to use this was actually not woken up when needed.

(Also why the hell does the subject line of that commit say "removed"?)

Fixes: 8c2d73f112
This commit is contained in:
wm4 2019-11-22 00:34:08 +01:00
parent 21f2468d67
commit 53477ffc4b
1 changed files with 2 additions and 0 deletions

View File

@ -611,6 +611,8 @@ struct mp_log_buffer *mp_msg_log_buffer_new(struct mpv_global *global,
if (root->early_buffer) {
struct mp_log_buffer *buffer = root->early_buffer;
root->early_buffer = NULL;
buffer->wakeup_cb = wakeup_cb;
buffer->wakeup_cb_ctx = wakeup_cb_ctx;
pthread_mutex_unlock(&mp_msg_lock);
return buffer;
}