[vlc-commits] macosx: fix conditional crash when setting the MRL field
Felix Paul Kühne
git at videolan.org
Tue Jul 2 23:15:30 CEST 2013
vlc/vlc-2.1 | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Tue Jul 2 23:11:40 2013 +0200| [4ba4a1de88c09129bc55ee56a029fee3cd94c582] | committer: Felix Paul Kühne
macosx: fix conditional crash when setting the MRL field
(cherry picked from commit 04b45e8ffd279a6df19ff96d6157a688bd6b7a08)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.1.git/?a=commit;h=4ba4a1de88c09129bc55ee56a029fee3cd94c582
---
modules/gui/macosx/open.m | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/gui/macosx/open.m b/modules/gui/macosx/open.m
index 5d965a4..7ee04b5 100644
--- a/modules/gui/macosx/open.m
+++ b/modules/gui/macosx/open.m
@@ -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
More information about the vlc-commits
mailing list