Skip to content
This repository
Browse code

fix: only remount optical disks on device change, this should fix sec…

…ure remove of usb thumb drives
  • Loading branch information...
commit a72f722f02d6f80cd03ad031e3839bb158fedae2 1 parent d8c852e
Peter Frühberger authored November 26, 2012

Showing 1 changed file with 3 additions and 2 deletions. Show diff stats Hide diff stats

  1. 5  xbmc/storage/linux/UDisksProvider.cpp
5  xbmc/storage/linux/UDisksProvider.cpp
@@ -360,8 +360,9 @@ void CUDisksProvider::DeviceChanged(const char *object, IStorageEventsCallback *
360 360
   else
361 361
   {
362 362
     bool mounted = device->m_isMounted;
363  
-
364  
-    if (!mounted && g_advancedSettings.m_handleMounting)
  363
+    /* make sure to not silently remount ejected usb thumb drives
  364
+       that user wants to eject, but make sure to mount blurays */
  365
+    if (!mounted && g_advancedSettings.m_handleMounting && device->m_isOptical)
365 366
       device->Mount();
366 367
 
367 368
     device->Update();

0 notes on commit a72f722

Please sign in to comment.
Something went wrong with that request. Please try again.