[banshee/1.5.1-fixes: 40/56] [Dap] Do a better job at setting default mimetypes
- From: Gabriel Burt <gburt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee/1.5.1-fixes: 40/56] [Dap] Do a better job at setting default mimetypes
- Date: Mon, 22 Mar 2010 18:07:26 +0000 (UTC)
commit a4feaa7135999d9413218e56f2aae5afaf117bff
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]