]> git.sesse.net Git - vlc/blobdiff - modules/gui/macosx/intf.m
* ALL: releasing a few unreleased objects.
[vlc] / modules / gui / macosx / intf.m
index e0c8a1f50b3cb24a14be5a4aef9170a7ea8e58da..d7fdea48004112fa06d18365343b83af69772bef 100644 (file)
@@ -39,6 +39,7 @@
 #include "about.h"
 #include "open.h"
 #include "wizard.h"
+#include "extended.h"
 
 /*****************************************************************************
  * Local prototypes.
@@ -298,6 +299,7 @@ static VLCMain *_o_sharedMainInstance = nil;
     o_prefs = nil;
     o_open = [[VLCOpen alloc] init];
     o_wizard = [[VLCWizard alloc] init];
+    o_extended = [[VLCExtended alloc] init];
 
     i_lastShownVolume = -1;
     return _o_sharedMainInstance;
@@ -527,6 +529,7 @@ static VLCMain *_o_sharedMainInstance = nil;
     [o_mi_close_window setTitle: _NS("Close Window")];
     [o_mi_controller setTitle: _NS("Controller")];
     [o_mi_equalizer setTitle: _NS("Equalizer")];
+    [o_mi_extended setTitle: _NS("Extended controls")];
     [o_mi_playlist setTitle: _NS("Playlist")];
     [o_mi_info setTitle: _NS("Info")];
     [o_mi_messages setTitle: _NS("Messages")];
@@ -1308,6 +1311,14 @@ static VLCMain *_o_sharedMainInstance = nil;
     playlist_t * p_playlist;
     vout_thread_t * p_vout;
 
+#define p_input p_intf->p_sys->p_input
+    if( p_input )
+    {
+        vlc_object_release( p_input );
+        p_input = NULL;
+    }
+#undef p_input
+
     /* Stop playback */
     if( ( p_playlist = vlc_object_find( p_intf, VLC_OBJECT_PLAYLIST,
                                         FIND_ANYWHERE ) ) )
@@ -1444,6 +1455,18 @@ static VLCMain *_o_sharedMainInstance = nil;
     }
 }
 
+- (IBAction)showExtended:(id)sender
+{
+    if (!nib_extended_loaded)
+    {
+        nib_extended_loaded = [NSBundle loadNibNamed:@"Extended" owner:self];
+        [o_extended initStrings];
+        [o_extended showPanel];
+    } else {
+        [o_extended showPanel];
+    }
+}
+
 - (IBAction)viewAbout:(id)sender
 {
     if (!nib_about_loaded)