[banshee/gio-hardware] [Dap] Handle empty acceptable mimetypes



commit d7d84a4bd9df1cd702b02e23579dc973b0882406
Author: Gabriel Burt <gabriel burt gmail com>
Date:   Thu Jul 29 11:18:40 2010 +0200

    [Dap] Handle empty acceptable mimetypes

 src/Dap/Banshee.Dap/Banshee.Dap/DapSource.cs |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/Dap/Banshee.Dap/Banshee.Dap/DapSource.cs b/src/Dap/Banshee.Dap/Banshee.Dap/DapSource.cs
index fa93b70..12078eb 100644
--- a/src/Dap/Banshee.Dap/Banshee.Dap/DapSource.cs
+++ b/src/Dap/Banshee.Dap/Banshee.Dap/DapSource.cs
@@ -28,6 +28,7 @@
 //
 
 using System;
+using System.Linq;
 using System.IO;
 using System.Collections.Generic;
 using System.Threading;
@@ -201,7 +202,9 @@ namespace Banshee.Dap
 
             if (acceptable_mimetypes == null) {
                 acceptable_mimetypes = HasMediaCapabilities ? MediaCapabilities.PlaybackMimeTypes : null;
-                acceptable_mimetypes = acceptable_mimetypes ?? new string [] { "taglib/mp3" };
+                if (acceptable_mimetypes == null || acceptable_mimetypes.Length == 0) {
+                    acceptable_mimetypes = new string [] { "taglib/mp3" };
+                }
             }
 
             AddChildSource (music_group_source = new MusicGroupSource (this));



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