From 2c7ebd624682e10cc247f68aab6184d90c70ae5e Mon Sep 17 00:00:00 2001 From: Stefan Saraev Date: Tue, 8 May 2012 23:35:43 +0300 Subject: [PATCH] xbmc: do not remount non optical devices on DeviceChanged event --- ...non-optical-devices-in-DeviceChanged-event.patch | 13 +++++++++++++ ...non-optical-devices-in-DeviceChanged-event.patch | 13 +++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 packages/mediacenter/xbmc/patches/xbmc-11.0.1-984-do-not-remount-non-optical-devices-in-DeviceChanged-event.patch create mode 100644 packages/mediacenter/xbmc/patches/xbmc-pvr-11.0.1-984-do-not-remount-non-optical-devices-in-DeviceChanged-event.patch diff --git a/packages/mediacenter/xbmc/patches/xbmc-11.0.1-984-do-not-remount-non-optical-devices-in-DeviceChanged-event.patch b/packages/mediacenter/xbmc/patches/xbmc-11.0.1-984-do-not-remount-non-optical-devices-in-DeviceChanged-event.patch new file mode 100644 index 0000000000..6163872d60 --- /dev/null +++ b/packages/mediacenter/xbmc/patches/xbmc-11.0.1-984-do-not-remount-non-optical-devices-in-DeviceChanged-event.patch @@ -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); diff --git a/packages/mediacenter/xbmc/patches/xbmc-pvr-11.0.1-984-do-not-remount-non-optical-devices-in-DeviceChanged-event.patch b/packages/mediacenter/xbmc/patches/xbmc-pvr-11.0.1-984-do-not-remount-non-optical-devices-in-DeviceChanged-event.patch new file mode 100644 index 0000000000..6163872d60 --- /dev/null +++ b/packages/mediacenter/xbmc/patches/xbmc-pvr-11.0.1-984-do-not-remount-non-optical-devices-in-DeviceChanged-event.patch @@ -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);