[vlc-commits] macosx: prevent a crash by stopping the current input when changing the ' video embedded' variable (close #6063)

Felix Paul Kühne git at videolan.org
Fri Apr 6 13:19:32 CEST 2012


vlc/vlc-2.0 | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Fri Apr  6 13:18:41 2012 +0200| [610e71f1e5b6e919782a6de6ff57defa561213d1] | committer: Felix Paul Kühne

macosx: prevent a crash by stopping the current input when changing the 'video embedded' variable (close #6063)
(cherry picked from commit de93266466b9d96b9fa3df9c66db1df93f3cebf4)

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

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

diff --git a/modules/gui/macosx/simple_prefs.m b/modules/gui/macosx/simple_prefs.m
index fd2a783..5a3bd9a 100644
--- a/modules/gui/macosx/simple_prefs.m
+++ b/modules/gui/macosx/simple_prefs.m
@@ -35,6 +35,7 @@
 #import "misc.h"
 #import "intf.h"
 #import "AppleRemote.h"
+#import "CoreInteraction.h"
 
 #import <Sparkle/Sparkle.h>                        //for o_intf_last_update_lbl
 
@@ -1053,6 +1054,9 @@ static inline void save_module_list( intf_thread_t * p_intf, id object, const ch
     if( sender == o_intf_nativefullscreen_ckb && [o_intf_nativefullscreen_ckb state] == NSOnState )
         [o_intf_embedded_ckb setState: NSOnState];
 
+    if( sender == o_intf_embedded_ckb )
+        [[VLCCoreInteraction sharedInstance] stop];
+
     b_intfSettingChanged = YES;
 }
 



More information about the vlc-commits mailing list