macosx: fix subtile bug in initialization of mainwindow
Currently, two objects of the class VLCMainWindow are generated. The first is alloated from intf.m (triggered by the first log message that arrives) and is initialized by both init and initWithContentRect. The second object is created from inside the nib file, and is instantiated ONLY with initWithContentRect. Therefore, up to now _o_sharedInstance had the wrong object and all calls to sharedInstance would cause problems. But somehow, o_mainwindow in intf.m is updated to the correct second object, although it holds the first object at start. Furthermore, o_fspanel is also instantiated through the nib file.
Showing
Please register or sign in to comment