[banshee] [Dap] Handle empty acceptable mimetypes
- From: Gabriel Burt <gburt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee] [Dap] Handle empty acceptable mimetypes
- Date: Fri, 13 Aug 2010 22:52:56 +0000 (UTC)
commit 15aad4fc2096638f84b0ea96eed2e0953de57b54
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]