Commit 35522bc2 authored by Felix Paul Kühne's avatar 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
parent 32b9c5bb
......@@ -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"]];
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment