[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:36:35 CEST 2010
vlc | branch: master | Sebastien Zwickert <dilaroga at free.fr> | Wed Jun 30 13:01:30 2010 +0200| [d02ebf22f52f84fd367b0e2133a24d22a508755d] | 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>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d02ebf22f52f84fd367b0e2133a24d22a508755d
---
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