aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordavilla <davilla@xbmc.org>2012-11-26 07:30:06 -0800
committerdavilla <davilla@xbmc.org>2012-11-26 07:30:06 -0800
commitf14f5a534c30f0e65992793e6b1cbe4567b594c4 (patch)
tree9b76f12a673c310f6f3c3c9103d450567d55586a
parentd8c852e34f700473cb38ae0bbf2216f26e6fc622 (diff)
parenta72f722f02d6f80cd03ad031e3839bb158fedae2 (diff)
Merge pull request #1849 from fritsch/fix-mount
fix: only remount optical disks on device change
-rw-r--r--xbmc/storage/linux/UDisksProvider.cpp5
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();