in other words, accept folders which aren't named 'VIDEO_TS'
returnValue = kVLCMediaBD;
else
{
returnValue = kVLCMediaBD;
else
{
- if ([mountPath rangeOfString:@"VIDEO_TS"].location != NSNotFound)
+ if ([mountPath rangeOfString:@"VIDEO_TS" options:NSCaseInsensitiveSearch | NSBackwardsSearch].location != NSNotFound)
returnValue = kVLCMediaVideoTSFolder;
returnValue = kVLCMediaVideoTSFolder;
- else if ([mountPath rangeOfString:@"BDMV"].location != NSNotFound)
+ else if ([mountPath rangeOfString:@"BDMV" options:NSCaseInsensitiveSearch | NSBackwardsSearch].location != NSNotFound)
returnValue = kVLCMediaBDMVFolder;
else
{
returnValue = kVLCMediaBDMVFolder;
else
{
- returnValue = kVLCMediaUnknown;
+ returnValue = kVLCMediaVideoTSFolder;
NSString *o_path = [[[o_open_panel URLs] objectAtIndex: 0] path];
if ([o_path length] > 0 )
{
NSString *o_path = [[[o_open_panel URLs] objectAtIndex: 0] path];
if ([o_path length] > 0 )
{
- if ([o_path rangeOfString:@"VIDEO_TS"].location != NSNotFound || [o_path rangeOfString:@"BDMV"].location != NSNotFound)
- {
- [o_specialMediaFolders addObject: o_path];
- [self scanOpticalMedia: nil];
- }
- else
- msg_Dbg( VLCIntf, "chosen directory is no suitable special media folder" );
+ [o_specialMediaFolders addObject: o_path];
+ [self scanOpticalMedia: nil];