Commit 68889de9 authored by Felix Paul Kühne's avatar Felix Paul Kühne

macosx: fixed crash when opening DVDs with uncommon disk names (close #7146)

parent cc1f8bf6
......@@ -832,13 +832,13 @@ static VLCOpen *_o_sharedMainInstance = nil;
GetVolParmsInfoBuffer volumeParms;
err = FSGetVolumeParms( actualVolume, &volumeParms, sizeof(volumeParms) );
if ( noErr != err ) {
msg_Err( p_intf, "error retrieving volume params, bailing out" );
return @"";
}
if ( noErr == err )
{
NSString *bsdName = [NSString stringWithUTF8String:(char *)volumeParms.vMDeviceID];
return [NSString stringWithFormat:@"/dev/r%@", bsdName];
}
return @"";
}
- (char *)getVolumeTypeFromMountPath:(NSString *)mountPath
......
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