mirror of
https://github.com/archr-linux/Arch-R.git
synced 2026-03-31 14:41:55 -07:00
xbmc: UDevProvider: mountpoint should contain "/media/"
/ (dev/loop0) is considered "removable" but should not be shown as (empty) media source
This commit is contained in:
@@ -16,7 +16,7 @@ index c20facc..c1044c8 100644
|
||||
((bus && strstr(bus, "usb")) ||
|
||||
(cdrom && strstr(cdrom,"1")) ||
|
||||
- (mountpoint && strstr(mountpoint, "usb"))))
|
||||
+ (mountpoint)))
|
||||
+ (mountpoint && strstr(mountpoint, "/media/"))))
|
||||
{
|
||||
const char *label = udev_device_get_property_value(device, "ID_FS_LABEL");
|
||||
if (!label)
|
||||
|
||||
Reference in New Issue
Block a user