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:
Stefan Saraev 2013-08-31 16:38:54 +03:00
parent 7c840e8491
commit 121b7f502a

View File

@ -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)