mirror of
https://github.com/mpv-player/mpv
synced 2024-12-26 00:42:57 +00:00
cocoa_common: don't use recursive locking
This was in the original change set for the threadsafety changes but I forgot to squash it in.
This commit is contained in:
parent
4878be02ad
commit
d2960d2e96
@ -177,7 +177,7 @@ struct vo_cocoa_state {
|
||||
|
||||
CGFloat accumulated_scroll;
|
||||
|
||||
NSRecursiveLock *lock;
|
||||
NSLock *lock;
|
||||
|
||||
bool enable_resize_redraw;
|
||||
void (*resize_redraw)(struct vo *vo, int w, int h);
|
||||
@ -202,7 +202,7 @@ static struct vo_cocoa_state *vo_cocoa_init_state(struct vo *vo)
|
||||
.vo_cursor_autohide_delay = vo->opts->cursor_autohide_delay,
|
||||
.power_mgmt_assertion = kIOPMNullAssertionID,
|
||||
.accumulated_scroll = 0,
|
||||
.lock = [[NSRecursiveLock alloc] init],
|
||||
.lock = [[NSLock alloc] init],
|
||||
.input_queue = vo_cocoa_input_queue_init(s),
|
||||
.enable_resize_redraw = NO,
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user