[rhythmbox] dbus-media-server: use a lower priority idle to emit updates
- From: Jonathan Matthew <jmatthew src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox] dbus-media-server: use a lower priority idle to emit updates
- Date: Mon, 16 Jan 2012 20:22:26 +0000 (UTC)
commit df960e67ff2e53c8b719484faadbbc70777fc2d7
Author: Jonathan Matthew <jonathan d14n org>
Date: Tue Jan 17 06:19:03 2012 +1000
dbus-media-server: use a lower priority idle to emit updates
RhythmDB uses various idle handlers and async queues when processing
updates. At lower idle priority, the handler used to emit dbus
updates catches more of these, resulting in fewer updates being
sent.
.../rb-dbus-media-server-plugin.c | 5 ++++-
1 files changed, 4 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 8523952..feee551 100644
--- a/plugins/dbus-media-server/rb-dbus-media-server-plugin.c
+++ b/plugins/dbus-media-server/rb-dbus-media-server-plugin.c
@@ -498,7 +498,10 @@ emit_updated_in_idle (RBMediaServer2Plugin *plugin)
{
if (plugin->emit_updated_id == 0) {
plugin->emit_updated_id =
- g_idle_add ((GSourceFunc)emit_container_updated_cb, plugin);
+ g_idle_add_full (G_PRIORITY_LOW,
+ (GSourceFunc)emit_container_updated_cb,
+ plugin,
+ NULL);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]