[vlc-commits] [Git][videolan/vlc][master] macosx: Correctly detect disc input item type
Steve Lhomme (@robUx4)
gitlab at videolan.org
Wed Sep 24 11:52:20 UTC 2025
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
75683e7e by Claudio Cambra at 2025-09-24T11:18:07+00:00
macosx: Correctly detect disc input item type
Fixes issue where volume sub-folders were classified as discs in browse view
- - - - -
1 changed file:
- modules/gui/macosx/library/media-source/VLCMediaSource.m
Changes:
=====================================
modules/gui/macosx/library/media-source/VLCMediaSource.m
=====================================
@@ -466,7 +466,7 @@ static const char *const myFoldersDescription = "My Folders";
[url getResourceValue:&isInternal forKey:NSURLVolumeIsInternalKey error:nil];
[url getResourceValue:&isLocal forKey:NSURLVolumeIsLocalKey error:nil];
- const enum input_item_type_e inputType = isDirectory.boolValue ? isEjectable.boolValue ? ITEM_TYPE_DISC : ITEM_TYPE_DIRECTORY : ITEM_TYPE_FILE;
+ const enum input_item_type_e inputType = isDirectory.boolValue ? (isVolume.boolValue && isEjectable.boolValue) ? ITEM_TYPE_DISC : ITEM_TYPE_DIRECTORY : ITEM_TYPE_FILE;
const enum input_item_net_type netType = isLocal.boolValue ? ITEM_LOCAL : ITEM_NET;
const char * const psz_filename = url.absoluteString.UTF8String;
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/75683e7e07842aaaf59109bda293d1744bf5b4cc
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/75683e7e07842aaaf59109bda293d1744bf5b4cc
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list