]> git.sesse.net Git - vlc/blobdiff - modules/gui/macosx/open.m
Useless #includes
[vlc] / modules / gui / macosx / open.m
index 9960b02778e8496f240182f9ace65251ea3a293f..77a18ff02800e525a690a1fb8c30d5dc4db0d0aa 100644 (file)
@@ -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"]];
     }
 }