From: Pierre d'Herbemont Date: Tue, 8 Jul 2008 00:19:41 +0000 (+0200) Subject: macosx: Close the video directly when clicking on the Stop button. X-Git-Tag: 0.9.0-test2~119 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=fc842132b1d7ac70c3cbce4c5c1a219200b95149;p=vlc macosx: Close the video directly when clicking on the Stop button. --- diff --git a/modules/gui/macosx/controls.m b/modules/gui/macosx/controls.m index b59df439d1..b58006642c 100644 --- a/modules/gui/macosx/controls.m +++ b/modules/gui/macosx/controls.m @@ -163,13 +163,15 @@ 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