mirror of
https://github.com/mpv-player/mpv
synced 2025-02-20 06:46:55 +00:00
cocoa: fix deadlock during initialization [2]
Fixup commit for 20fa191ad
.
This commit is contained in:
parent
5f1b155307
commit
229d398ba9
@ -389,13 +389,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