diff options
author | davilla <davilla@xbmc.org> | 2012-11-26 07:30:06 -0800 |
---|---|---|
committer | davilla <davilla@xbmc.org> | 2012-11-26 07:30:06 -0800 |
commit | f14f5a534c30f0e65992793e6b1cbe4567b594c4 (patch) | |
tree | 9b76f12a673c310f6f3c3c9103d450567d55586a | |
parent | d8c852e34f700473cb38ae0bbf2216f26e6fc622 (diff) | |
parent | a72f722f02d6f80cd03ad031e3839bb158fedae2 (diff) |
Merge pull request #1849 from fritsch/fix-mount
fix: only remount optical disks on device change
-rw-r--r-- | xbmc/storage/linux/UDisksProvider.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/xbmc/storage/linux/UDisksProvider.cpp b/xbmc/storage/linux/UDisksProvider.cpp index 4a7d6500dc..2efbe964fa 100644 --- a/xbmc/storage/linux/UDisksProvider.cpp +++ b/xbmc/storage/linux/UDisksProvider.cpp @@ -360,8 +360,9 @@ void CUDisksProvider::DeviceChanged(const char *object, IStorageEventsCallback * else { bool mounted = device->m_isMounted; - - if (!mounted && g_advancedSettings.m_handleMounting) + /* make sure to not silently remount ejected usb thumb drives + that user wants to eject, but make sure to mount blurays */ + if (!mounted && g_advancedSettings.m_handleMounting && device->m_isOptical) device->Mount(); device->Update(); |