[banshee] Mtp: Ignore devices with DeviceNumber == 0



commit ebb5cdb2b1f6dd7a0855c8847afa483f36a18d7e
Author: Gabriel Burt <gabriel burt gmail com>
Date:   Mon Mar 28 15:31:24 2011 -0500

    Mtp: Ignore devices with DeviceNumber == 0

 .../Banshee.Dap.Mtp/Banshee.Dap.Mtp/MtpSource.cs   |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/Dap/Banshee.Dap.Mtp/Banshee.Dap.Mtp/MtpSource.cs b/src/Dap/Banshee.Dap.Mtp/Banshee.Dap.Mtp/MtpSource.cs
index fb01faa..5e7294e 100644
--- a/src/Dap/Banshee.Dap.Mtp/Banshee.Dap.Mtp/MtpSource.cs
+++ b/src/Dap/Banshee.Dap.Mtp/Banshee.Dap.Mtp/MtpSource.cs
@@ -66,7 +66,7 @@ namespace Banshee.Dap.Mtp
             base.DeviceInitialize (device);
 
             var portInfo = device.ResolveUsbPortInfo ();
-            if (portInfo == null) {
+            if (portInfo == null || portInfo.DeviceNumber == 0) {
                 throw new InvalidDeviceException ();
             }
 



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