[banshee] Revert "[Hardware.Gio] Fix parsing of string lists in DeviceMediaCapabilities"



commit 5b87bc3838ccc8587b2a3e9390b5603f7e64e983
Author: Alex Launi <alex launi gmail com>
Date:   Wed Sep 8 15:11:28 2010 -0400

    Revert "[Hardware.Gio] Fix parsing of string lists in DeviceMediaCapabilities"
    
    GKeyfile work around is no longer needed.
    This reverts commit 8c8da05b98edc7ca3d6805b281b52ae827592517.

 .../DeviceMediaCapabilities.cs                     |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/Backends/Banshee.Gio/Banshee.Hardware.Gio/DeviceMediaCapabilities.cs b/src/Backends/Banshee.Gio/Banshee.Hardware.Gio/DeviceMediaCapabilities.cs
index 784925b..035ed09 100644
--- a/src/Backends/Banshee.Gio/Banshee.Hardware.Gio/DeviceMediaCapabilities.cs
+++ b/src/Backends/Banshee.Gio/Banshee.Hardware.Gio/DeviceMediaCapabilities.cs
@@ -132,6 +132,7 @@ namespace Banshee.Hardware.Gio
 #endregion
         private class GMpiFileInfo
         {
+            private const string Seperator = ";";
             private const string MediaGroup = "Media";
             private const string DeviceGroup = "Device";
             private const string VendorGroup = "Vendor";
@@ -144,6 +145,7 @@ namespace Banshee.Hardware.Gio
             {
                 try {
                     mpi_file = new GKeyFile ();
+                    mpi_file.ListSeparator = Seperator;
                     mpi_file.LoadFromDirs (String.Format ("{0}.mpi", mediaPlayerId),
                                            new string [] {"/usr/share/media-player-info",
                                                           "/usr/local/share/media-player-info"},
@@ -213,7 +215,6 @@ namespace Banshee.Hardware.Gio
 
                     if (mpi_file.HasKey (MediaGroup, "OutputFormats")) {
                         OutputFormats = mpi_file.GetStringList (MediaGroup, "OutputFormats");
-                        OutputFormats = OutputFormats[0].Split (';');
                     }
                 }
 



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