Commit c38dc0da authored by David Fuhrmann's avatar David Fuhrmann

macosx: drop the potential BDMV folder from a bluray path (fixes #10928)

Only the path to the bluray structure itself is supported.
parent 6f8c750a
...@@ -1006,6 +1006,13 @@ out: ...@@ -1006,6 +1006,13 @@ out:
NSImage *o_image = [[NSWorkspace sharedWorkspace] iconForFile: o_path]; NSImage *o_image = [[NSWorkspace sharedWorkspace] iconForFile: o_path];
NSString *o_device_path; NSString *o_device_path;
// BDMV path must not end with BDMV directory
if([o_type isEqualToString: kVLCMediaBDMVFolder]) {
if([[o_path lastPathComponent] isEqualToString: @"BDMV"]) {
o_path = [o_path stringByDeletingLastPathComponent];
}
}
if ([o_type isEqualToString: kVLCMediaVideoTSFolder] || if ([o_type isEqualToString: kVLCMediaVideoTSFolder] ||
[o_type isEqualToString: kVLCMediaBD] || [o_type isEqualToString: kVLCMediaBD] ||
[o_type isEqualToString: kVLCMediaBDMVFolder] || [o_type isEqualToString: kVLCMediaBDMVFolder] ||
......
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