From c54a1f3e412e107f3eb675e5276839cf0038c4fa Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Thu, 24 Oct 2013 00:04:43 +0200 Subject: cocoa: fix race condition with input context creation This seems to be a problem only in OS X 10.9. I guess they improved the general speed of the Cocoa startup and suddenly mpv core takes more time than the Cocoa thread to initialize. Fixes #285 (hopefully!) --- osdep/macosx_application_objc.h | 1 + 1 file changed, 1 insertion(+) (limited to 'osdep/macosx_application_objc.h') diff --git a/osdep/macosx_application_objc.h b/osdep/macosx_application_objc.h index 53d00b2ab4..c130e51eba 100644 --- a/osdep/macosx_application_objc.h +++ b/osdep/macosx_application_objc.h @@ -43,6 +43,7 @@ @property(nonatomic, retain) NSArray *files; @property(nonatomic, retain) NSMutableArray *argumentsList; @property(nonatomic, assign) BOOL willStopOnOpenEvent; +@property(nonatomic, retain) NSCondition *input_ready; @end Application *mpv_shared_app(void); -- cgit v1.2.3