mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
Merge pull request #614 from stefansaraev/xbmc-udisks
xbmc: do not remount non optical devices on DeviceChanged event
This commit is contained in:
commit
a49072ce14
@ -0,0 +1,13 @@
|
||||
diff --git a/xbmc/storage/linux/UDisksProvider.cpp b/xbmc/storage/linux/UDisksProvider.cpp
|
||||
index 6afc1a8..c940e69 100644
|
||||
--- a/xbmc/storage/linux/UDisksProvider.cpp
|
||||
+++ b/xbmc/storage/linux/UDisksProvider.cpp
|
||||
@@ -356,7 +356,7 @@ void CUDisksProvider::DeviceChanged(const char *object, IStorageEventsCallback *
|
||||
{
|
||||
bool mounted = device->m_isMounted;
|
||||
device->Update();
|
||||
- if (g_advancedSettings.m_handleMounting)
|
||||
+ if (g_advancedSettings.m_handleMounting && device->m_isOptical)
|
||||
device->Mount();
|
||||
if (!mounted && device->m_isMounted && callback)
|
||||
callback->OnStorageAdded(device->m_Label, device->m_MountPath);
|
@ -0,0 +1,13 @@
|
||||
diff --git a/xbmc/storage/linux/UDisksProvider.cpp b/xbmc/storage/linux/UDisksProvider.cpp
|
||||
index 6afc1a8..c940e69 100644
|
||||
--- a/xbmc/storage/linux/UDisksProvider.cpp
|
||||
+++ b/xbmc/storage/linux/UDisksProvider.cpp
|
||||
@@ -356,7 +356,7 @@ void CUDisksProvider::DeviceChanged(const char *object, IStorageEventsCallback *
|
||||
{
|
||||
bool mounted = device->m_isMounted;
|
||||
device->Update();
|
||||
- if (g_advancedSettings.m_handleMounting)
|
||||
+ if (g_advancedSettings.m_handleMounting && device->m_isOptical)
|
||||
device->Mount();
|
||||
if (!mounted && device->m_isMounted && callback)
|
||||
callback->OnStorageAdded(device->m_Label, device->m_MountPath);
|
Loading…
x
Reference in New Issue
Block a user