diff options
author | wm4 <wm4@nowhere> | 2019-11-22 00:34:08 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2019-11-22 01:15:08 +0100 |
commit | 53477ffc4b1a9013c5edcf90320ff6f809b293d6 (patch) | |
tree | f905c23b192d640d3d755805c5240faafc417494 | |
parent | 21f2468d67e11eff7ede0d85fa6f4ab5c4f7de84 (diff) | |
download | mpv-53477ffc4b1a9013c5edcf90320ff6f809b293d6.tar.bz2 mpv-53477ffc4b1a9013c5edcf90320ff6f809b293d6.tar.xz |
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
-rw-r--r-- | common/msg.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; } |