]> git.sesse.net Git - vlc/commitdiff
macosx: fix conditional crash when setting the MRL field
authorFelix Paul Kühne <fkuehne@videolan.org>
Tue, 2 Jul 2013 21:11:40 +0000 (23:11 +0200)
committerFelix Paul Kühne <fkuehne@videolan.org>
Tue, 2 Jul 2013 21:14:30 +0000 (23:14 +0200)
modules/gui/macosx/open.m

index 5d965a4c5b4da4ab50e706e783a10d7347311a2b..7ee04b58d65c1b4bac0e416163c5e1a053f4c426 100644 (file)
@@ -338,7 +338,7 @@ static VLCOpen *_o_sharedMainInstance = nil;
 
     o_mrl = newMRL;
     [o_mrl retain];
-    [o_mrl_fld setStringValue: o_mrl];
+    [o_mrl_fld performSelectorOnMainThread:@selector(setStringValue:) withObject:o_mrl waitUntilDone:NO];
     if ([o_mrl length] > 0)
         [o_btn_ok setEnabled: YES];
     else