diff options
author | Stefan Saraev <stefansaraev@users.noreply.github.com> | 2015-12-21 20:14:03 +0200 |
---|---|---|
committer | Stefan Saraev <stefansaraev@users.noreply.github.com> | 2015-12-21 20:14:03 +0200 |
commit | 3163da304143ef32f8d088a777fe46621d411e68 (patch) | |
tree | 7743fae7ae2a9e9f77084a721d53294814e1e0b0 | |
parent | 24ece34d538d02552f4fcebbe62c708a0ff8a6bb (diff) | |
parent | 0da5f9fc1d0db32444929447401929256764d640 (diff) |
Merge pull request #8600 from stefansaraev/udev
[udevprovider] handle 'change' events only for optical drives
-rw-r--r-- | xbmc/storage/linux/UDevProvider.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xbmc/storage/linux/UDevProvider.cpp b/xbmc/storage/linux/UDevProvider.cpp index ffd5e00ce0..af5d9c5d93 100644 --- a/xbmc/storage/linux/UDevProvider.cpp +++ b/xbmc/storage/linux/UDevProvider.cpp @@ -269,7 +269,8 @@ bool CUDevProvider::PumpDriveChangeEvents(IStorageEventsCallback *callback) } if (strcmp(action, "change") == 0) { - if (mountpoint) + const char *optical = udev_device_get_property_value(dev, "ID_CDROM"); + if (mountpoint && (optical && strcmp(optical, "1") == 0)) { CLog::Log(LOGNOTICE, "UDev: Changed / Added %s", mountpoint); if (callback) |