mirror of
https://github.com/mpv-player/mpv
synced 2025-01-13 18:45:25 +00:00
cocoa: fix deadlock during initialization [2]
Fixup commit for 20fa191ad
.
This commit is contained in:
parent
098f0c67e6
commit
2705c66799
@ -382,13 +382,10 @@ void cocoa_stop_runloop(void)
|
||||
|
||||
void cocoa_set_input_context(struct input_ctx *input_context)
|
||||
{
|
||||
if (input_context) {
|
||||
[mpv_shared_app().input_ready lock];
|
||||
[mpv_shared_app().input_ready signal];
|
||||
[mpv_shared_app().input_ready unlock];
|
||||
}
|
||||
|
||||
[mpv_shared_app().input_ready lock];
|
||||
mpv_shared_app().inputContext = input_context;
|
||||
[mpv_shared_app().input_ready signal];
|
||||
[mpv_shared_app().input_ready unlock];
|
||||
}
|
||||
|
||||
void cocoa_post_fake_event(void)
|
||||
|
Loading…
Reference in New Issue
Block a user