[rhythmbox] dbus-media-server: emit track list updates with the right object path
- From: Jonathan Matthew <jmatthew src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox] dbus-media-server: emit track list updates with the right object path
- Date: Tue, 17 Jan 2012 22:51:49 +0000 (UTC)
commit 0a3b09a28ba7e50491a1ce0c47d9ac51bbe32705
Author: Jonathan Matthew <jonathan d14n org>
Date: Wed Jan 18 08:35:29 2012 +1000
dbus-media-server: emit track list updates with the right object path
.../rb-dbus-media-server-plugin.c | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/plugins/dbus-media-server/rb-dbus-media-server-plugin.c b/plugins/dbus-media-server/rb-dbus-media-server-plugin.c
index 456d416..8bf5204 100644
--- a/plugins/dbus-media-server/rb-dbus-media-server-plugin.c
+++ b/plugins/dbus-media-server/rb-dbus-media-server-plugin.c
@@ -1288,6 +1288,7 @@ emit_source_tracks_property_updates (RBMediaServer2Plugin *plugin, SourceRegistr
const char *invalidated[] = { NULL };
GVariantBuilder *properties;
GVariant *parameters;
+ char *path;
rb_debug ("updating properties for source %s", source_data->dbus_path);
properties = g_variant_builder_new (G_VARIANT_TYPE ("a{sv}"));
@@ -1300,13 +1301,19 @@ emit_source_tracks_property_updates (RBMediaServer2Plugin *plugin, SourceRegistr
properties,
invalidated);
g_variant_builder_unref (properties);
+ if (source_data->flat) {
+ path = g_strdup (source_data->dbus_path);
+ } else {
+ path = g_strdup_printf ("%s/all", source_data->dbus_path);
+ }
g_dbus_connection_emit_signal (plugin->connection,
NULL,
- source_data->dbus_path,
+ path,
"org.freedesktop.DBus.Properties",
"PropertiesChanged",
parameters,
&error);
+ g_free (path);
if (error != NULL) {
g_warning ("Unable to send property changes for MediaServer2 container %s: %s",
source_data->dbus_path,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]