Commit ee308e59 authored by David Fuhrmann's avatar David Fuhrmann

macosx: do registration of the log callback slightly later

This fixes mysterious interface crashes during startup, because of wrong / corrupt
initialization of several objects.
parent 8e3b1d7e
...@@ -114,9 +114,6 @@ int OpenIntf (vlc_object_t *p_this) ...@@ -114,9 +114,6 @@ int OpenIntf (vlc_object_t *p_this)
memset(p_intf->p_sys, 0, sizeof(*p_intf->p_sys)); memset(p_intf->p_sys, 0, sizeof(*p_intf->p_sys));
/* subscribe to LibVLCCore's messages */
vlc_LogSet(p_this->p_libvlc, MsgCallback, NULL);
Run(p_intf); Run(p_intf);
[o_pool release]; [o_pool release];
...@@ -281,6 +278,10 @@ static void Run(intf_thread_t *p_intf) ...@@ -281,6 +278,10 @@ static void Run(intf_thread_t *p_intf)
o_plItemChangedLock = [[NSLock alloc] init]; o_plItemChangedLock = [[NSLock alloc] init];
[[VLCMain sharedInstance] setIntf: p_intf]; [[VLCMain sharedInstance] setIntf: p_intf];
/* subscribe to LibVLCCore's messages */
vlc_LogSet(p_intf->p_libvlc, MsgCallback, NULL);
[NSBundle loadNibNamed: @"MainMenu" owner: NSApp]; [NSBundle loadNibNamed: @"MainMenu" owner: NSApp];
[NSApp run]; [NSApp run];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment