[vlc-devel] commit: macosx: Close the video directly when clicking on the Stop button. (Pierre d'Herbemont )

git version control git at videolan.org
Tue Jul 8 02:17:43 CEST 2008


vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Tue Jul  8 02:19:41 2008 +0200| [fc842132b1d7ac70c3cbce4c5c1a219200b95149]

macosx: Close the video directly when clicking on the Stop button.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=fc842132b1d7ac70c3cbce4c5c1a219200b95149
---

 modules/gui/macosx/controls.m |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/modules/gui/macosx/controls.m b/modules/gui/macosx/controls.m
index b59df43..b580066 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




More information about the vlc-devel mailing list