mirror of
https://github.com/mpv-player/mpv
synced 2025-02-16 20:27:23 +00:00
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:
parent
21f2468d67
commit
53477ffc4b
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user