[banshee] Fix support for some MTP devices (BGO #543938)



commit 4c5b071bf68141b5681baf7a7522288b6bfb4e67
Author: Nyall Dawson <nyall zombiepigs net>
Date:   Mon Oct 5 11:51:49 2009 -0700

    Fix support for some MTP devices (BGO #543938)
    
    Signed-off-by: Gabriel Burt <gabriel burt gmail com>

 .../Banshee.Dap.Mtp/Banshee.Dap.Mtp/MtpSource.cs   |    4 ++++
 1 files changed, 4 insertions(+), 0 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 6bd23cf..87cd88e 100644
--- a/src/Dap/Banshee.Dap.Mtp/Banshee.Dap.Mtp/MtpSource.cs
+++ b/src/Dap/Banshee.Dap.Mtp/Banshee.Dap.Mtp/MtpSource.cs
@@ -109,6 +109,10 @@ namespace Banshee.Dap.Mtp
                     if (mtp_serial.Contains (device.Serial)) {
                         mtp_device = devices[0];
                         mtp_source = this;
+                    } else if (device.Serial.Contains (mtp_serial.TrimStart('0'))) {
+                        // Special case for sony walkman players; BGO #543938
+                        mtp_device = devices[0];
+                        mtp_source = this;
                     }
                 }
 



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