[rhythmbox] dbus-media-server: don't crash on property changes (bug #657126)



commit 94979ab998415271140872bf3a2081ad0d6bb935
Author: Jonathan Matthew <jonathan d14n org>
Date:   Tue Aug 23 20:47:29 2011 +1000

    dbus-media-server: don't crash on property changes (bug #657126)

 .../rb-dbus-media-server-plugin.c                  |    2 +-
 1 files changed, 1 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 02c835c..05ec568 100644
--- a/plugins/dbus-media-server/rb-dbus-media-server-plugin.c
+++ b/plugins/dbus-media-server/rb-dbus-media-server-plugin.c
@@ -1712,7 +1712,7 @@ entry_prop_changed_cb (RhythmDBQueryModel *model,
 			continue;
 
 		prop_data->updated = TRUE;
-		value = rhythmdb_entry_get_refstring (entry, prop);
+		value = rhythmdb_entry_get_refstring (entry, prop_data->property);
 		if (g_list_find (prop_data->updated_values, value) == NULL) {
 			prop_data->updated_values =
 				g_list_prepend (prop_data->updated_values, value);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]