From 53477ffc4b1a9013c5edcf90320ff6f809b293d6 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 22 Nov 2019 00:34:08 +0100 Subject: 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: 8c2d73f11205 --- common/msg.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/msg.c b/common/msg.c index 8b28d2c1bc..f9dab29d5a 100644 --- a/common/msg.c +++ b/common/msg.c @@ -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; } -- cgit v1.2.3