[banshee] Mpris: Fix list of supported URI schemes
- From: Bertrand Lorentz <blorentz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee] Mpris: Fix list of supported URI schemes
- Date: Sat, 17 Mar 2012 13:31:54 +0000 (UTC)
commit 1ada9b23f6bf1db2095777e1c276df75936d3d2b
Author: Bertrand Lorentz <bertrand lorentz gmail com>
Date: Sat Mar 17 14:28:58 2012 +0100
Mpris: Fix list of supported URI schemes
Even though our PlayerEngine supports other URI schemes, the OpenUri
method onyl supports file:// and http://.
.../Banshee.Mpris/Banshee.Mpris/MediaPlayer.cs | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/Extensions/Banshee.Mpris/Banshee.Mpris/MediaPlayer.cs b/src/Extensions/Banshee.Mpris/Banshee.Mpris/MediaPlayer.cs
index ea51f7c..4badcfe 100644
--- a/src/Extensions/Banshee.Mpris/Banshee.Mpris/MediaPlayer.cs
+++ b/src/Extensions/Banshee.Mpris/Banshee.Mpris/MediaPlayer.cs
@@ -120,8 +120,11 @@ namespace Banshee.Mpris
get { return supported_mimetypes; }
}
+ // We can't use the PlayerEngine.SourceCapabilities property here, because
+ // the OpenUri method only supports "file" and "http".
+ private static string [] supported_uri_schemes = { "file", "http" };
public string [] SupportedUriSchemes {
- get { return (string [])ServiceManager.PlayerEngine.ActiveEngine.SourceCapabilities; }
+ get { return supported_uri_schemes; }
}
public void Raise ()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]