0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02: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:
Stefano Pigozzi 2013-05-13 23:25:35 +02:00
parent 4878be02ad
commit d2960d2e96

View File

@ -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,
};