]> git.sesse.net Git - vlc/blobdiff - modules/gui/macosx/controls.m
macosx: Close the video directly when clicking on the Stop button.
[vlc] / 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