]> git.sesse.net Git - vlc/commitdiff
macosx: Close the video directly when clicking on the Stop button.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Tue, 8 Jul 2008 00:19:41 +0000 (02:19 +0200)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Tue, 8 Jul 2008 00:19:57 +0000 (02:19 +0200)
modules/gui/macosx/controls.m

index b59df439d11c5023db725849b8ff67615de33282..b58006642ca96c0ced391a53c24123958a9576a4 100644 (file)
     return o_vout_view;
 }
 
-
 - (IBAction)stop:(id)sender
 {
     vlc_value_t val;
     intf_thread_t * p_intf = VLCIntf;
     val.i_int = config_GetInt( p_intf, "key-stop" );
     var_Set( p_intf->p_libvlc, "key-pressed", val );
+    /* Close the window directly, because we do know that there
+     * won't be anymore video. It's currently waiting a bit. */
+    [[[self getVoutView] window] orderOut:self];
 }
 
 - (IBAction)faster:(id)sender