[vlc-commits] commit: MacOS: fixes #3825. Since [af97f24d528acab89969d6541d83f17ce1ecd580 ] we need to send a stop: message to properly exit libvlc. ( Sebastien Zwickert )

git at videolan.org git at videolan.org
Thu Jul 1 13:58:33 CEST 2010


vlc/vlc-1.1 | branch: master | Sebastien Zwickert <dilaroga at free.fr> | Wed Jun 30 13:01:30 2010 +0200| [4b2e911b9d47f243537b5d8aee864da7ead7aa6f] | committer: Jean-Baptiste Kempf 

MacOS: fixes #3825. Since [af97f24d528acab89969d6541d83f17ce1ecd580] we need to send a stop: message to properly exit libvlc.

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
(cherry picked from commit d02ebf22f52f84fd367b0e2133a24d22a508755d)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 modules/gui/macosx/intf.m |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/modules/gui/macosx/intf.m b/modules/gui/macosx/intf.m
index 93eef2b..116023f 100644
--- a/modules/gui/macosx/intf.m
+++ b/modules/gui/macosx/intf.m
@@ -2925,4 +2925,14 @@ end:
     b_justJumped = NO;
 }
 
+// when user selects the quit menu from dock it sends a terminate:
+// but we need to send a stop: to properly exits libvlc.
+// However, we are not able to change the action-method sent by this standard menu item.
+// thus we override terminat: to send a stop:
+// see [af97f24d528acab89969d6541d83f17ce1ecd580] that introduced the removal of setjmp() and longjmp() 
+- (void)terminate:(id)sender
+{
+    [self stop:sender];
+}
+
 @end



More information about the vlc-commits mailing list