[banshee] Mpris: Add the type of the parent source in the playlist id (bgo#643782)
- From: Bertrand Lorentz <blorentz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee] Mpris: Add the type of the parent source in the playlist id (bgo#643782)
- Date: Mon, 21 Mar 2011 18:36:18 +0000 (UTC)
commit 0950a0e08c5629be71eb3f0966433f78888d5056
Author: Bertrand Lorentz <bertrand lorentz gmail com>
Date: Sat Mar 19 17:49:34 2011 +0100
Mpris: Add the type of the parent source in the playlist id (bgo#643782)
This is a not-so-clean solution to allow MPRIS clients like the Ubuntu
Sound Menu to distinguish between music and video playlists. Video
playlists will have /VideoLibrarySource/ in their object path.
.../Banshee.Mpris/Banshee.Mpris/MediaPlayer.cs | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/Extensions/Banshee.Mpris/Banshee.Mpris/MediaPlayer.cs b/src/Extensions/Banshee.Mpris/Banshee.Mpris/MediaPlayer.cs
index f040ffb..3dd8887 100644
--- a/src/Extensions/Banshee.Mpris/Banshee.Mpris/MediaPlayer.cs
+++ b/src/Extensions/Banshee.Mpris/Banshee.Mpris/MediaPlayer.cs
@@ -364,6 +364,9 @@ namespace Banshee.Mpris
StringBuilder object_path_builder = new StringBuilder ();
object_path_builder.Append (DBusServiceManager.ObjectRoot);
+ if (playlist.Parent != null) {
+ object_path_builder.AppendFormat ("/{0}", DBusServiceManager.MakeDBusSafeString (playlist.Parent.TypeName));
+ }
object_path_builder.Append ("/Playlists/");
object_path_builder.Append (DBusServiceManager.MakeDBusSafeString (playlist.UniqueId));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]