[vlc-commits] macosx: fixed rare crash when trying to send debug messages

Felix Paul Kühne git at videolan.org
Thu Oct 18 18:37:18 CEST 2012


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Thu Oct 18 18:36:59 2012 +0200| [35522bc2663a646e4cdaf0e0c2c81ef33e295a6c] | committer: Felix Paul Kühne

macosx: fixed rare crash when trying to send debug messages

This can happen while the interface module isn't fully initialized yet or anymore

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

 modules/gui/macosx/open.m |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/modules/gui/macosx/open.m b/modules/gui/macosx/open.m
index 9960b02..77a18ff 100644
--- a/modules/gui/macosx/open.m
+++ b/modules/gui/macosx/open.m
@@ -985,7 +985,9 @@ static VLCOpen *_o_sharedMainInstance = nil;
         [self showOpticalMediaView: o_disc_bd_view withIcon: o_image];
         [self setMRL: [NSString stringWithFormat: @"bluray://%@", o_opticalDevicePath]];
     } else {
-        msg_Warn(VLCIntf, "unknown disk type, no idea what to display");
+        if (VLCIntf)
+            msg_Warn(VLCIntf, "unknown disk type, no idea what to display");
+
         [self showOpticalMediaView: o_disc_nodisc_view withIcon: [NSImage imageNamed:@"NSApplicationIcon"]];
     }
 }



More information about the vlc-commits mailing list