[banshee] [Dap] Do a better job at setting default mimetypes
- From: Gabriel Burt <gburt src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [banshee] [Dap] Do a better job at setting default mimetypes
- Date: Fri, 13 Nov 2009 18:41:01 +0000 (UTC)
commit 251c6f61c5d925ad359e48bb2e7703eba5dce556
Author: Gabriel Burt <gabriel burt gmail com>
Date: Fri Nov 13 10:36:54 2009 -0800
[Dap] Do a better job at setting default mimetypes
src/Dap/Banshee.Dap/Banshee.Dap/DapSource.cs | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/Dap/Banshee.Dap/Banshee.Dap/DapSource.cs b/src/Dap/Banshee.Dap/Banshee.Dap/DapSource.cs
index e020c7c..a78e475 100644
--- a/src/Dap/Banshee.Dap/Banshee.Dap/DapSource.cs
+++ b/src/Dap/Banshee.Dap/Banshee.Dap/DapSource.cs
@@ -199,9 +199,8 @@ namespace Banshee.Dap
AddDapProperty (Catalog.GetString ("Vendor"), device.Vendor);
if (acceptable_mimetypes == null) {
- acceptable_mimetypes = HasMediaCapabilities
- ? MediaCapabilities.PlaybackMimeTypes
- : new string [] { "taglib/mp3" };
+ acceptable_mimetypes = HasMediaCapabilities ? MediaCapabilities.PlaybackMimeTypes : null;
+ acceptable_mimetypes = 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]