[banshee] [AppleDevice] Only mount a device if it has non-null MediaCapabilities



commit d3e5eb6d305efc7985460f26aee5982ad5b15847
Author: Alan McGovern <alan mcgovern gmail com>
Date:   Wed Sep 29 00:44:50 2010 +0100

    [AppleDevice] Only mount a device if it has non-null MediaCapabilities
    
    If the AppleDeviceSource detects an unmounted volume which has media
    capabilities, it should mount it to check whether or not it's an
    ipod/iOS device. Volumes with no media capabilities are ignored.

 .../Banshee.Dap.AppleDevice/AppleDeviceSource.cs   |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/Dap/Banshee.Dap.AppleDevice/Banshee.Dap.AppleDevice/AppleDeviceSource.cs b/src/Dap/Banshee.Dap.AppleDevice/Banshee.Dap.AppleDevice/AppleDeviceSource.cs
index a9d8ed2..fdb4f95 100644
--- a/src/Dap/Banshee.Dap.AppleDevice/Banshee.Dap.AppleDevice/AppleDeviceSource.cs
+++ b/src/Dap/Banshee.Dap.AppleDevice/Banshee.Dap.AppleDevice/AppleDeviceSource.cs
@@ -68,7 +68,7 @@ namespace Banshee.Dap.AppleDevice
                 throw new InvalidDeviceException ();
             }
 
-            if (!Volume.IsMounted) {
+            if (!Volume.IsMounted && MediaCapabilities != null) {
                 Hyena.Log.Information ("Found potential unmounted iDevice, trying to mount it now");
                 Volume.Mount ();
             }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]