From fc842132b1d7ac70c3cbce4c5c1a219200b95149 Mon Sep 17 00:00:00 2001 From: Pierre d'Herbemont Date: Tue, 8 Jul 2008 02:19:41 +0200 Subject: [PATCH] macosx: Close the video directly when clicking on the Stop button. --- modules/gui/macosx/controls.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.39.2