[banshee] AppleDevice: Ensure m4a/mp3 are supported (bgo#633552)



commit 8cadf85c1790c01c6124b21ea8c7b2d8cbc9b59f
Author: Gabriel Burt <gabriel burt gmail com>
Date:   Fri Apr 8 12:50:20 2011 -0500

    AppleDevice: Ensure m4a/mp3 are supported (bgo#633552)

 .../Banshee.Dap.AppleDevice/AppleDeviceSource.cs   |   14 ++++++++++----
 1 files changed, 10 insertions(+), 4 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 9060a21..561cc66 100644
--- a/src/Dap/Banshee.Dap.AppleDevice/Banshee.Dap.AppleDevice/AppleDeviceSource.cs
+++ b/src/Dap/Banshee.Dap.AppleDevice/Banshee.Dap.AppleDevice/AppleDeviceSource.cs
@@ -27,17 +27,20 @@
 //
 
 using System;
+using System.Linq;
+using System.Collections.Generic;
+using System.Threading;
+
+using Hyena;
+using Hyena.Query;
+
 using Banshee.Base;
 using Banshee.Collection.Database;
 using Banshee.ServiceStack;
 using Banshee.Library;
-using System.Collections.Generic;
-using System.Threading;
 using Banshee.Hardware;
 using Banshee.Sources;
 using Banshee.I18n;
-using Hyena.Query;
-using Hyena;
 using Banshee.Playlist;
 
 namespace Banshee.Dap.AppleDevice
@@ -94,6 +97,9 @@ namespace Banshee.Dap.AppleDevice
             Initialize ();
             GPod.ITDB.InitIpod (Volume.MountPoint, Device.IpodInfo == null ? null : Device.IpodInfo.ModelNumber, Name);
 
+            // HACK: ensure that m4a, and mp3 are set as accepted by the device; bgo#633552
+            AcceptableMimeTypes = (AcceptableMimeTypes ?? new string [0]).Union (new string [] { "taglib/m4a", "taglib/mp3" }).ToArray ();
+
             // FIXME: Properly parse the device, color and generation and don't use the fallback strings
 
             // IpodInfo is null on Macos formated ipods. I don't think we can really do anything with them



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