This fixes mysterious interface crashes during startup, because of wrong / corrupt
initialization of several objects.
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);
[o_pool release];
o_plItemChangedLock = [[NSLock alloc] init];
[[VLCMain sharedInstance] setIntf: p_intf];
+
+ /* subscribe to LibVLCCore's messages */
+ vlc_LogSet(p_intf->p_libvlc, MsgCallback, NULL);
+
[NSBundle loadNibNamed: @"MainMenu" owner: NSApp];
[NSApp run];