changeset 3968:f1ed63913f1c

Add MPRIS codec and quality fields.
author William Pitcock <nenolod@atheme.org>
date Sat, 17 Nov 2007 23:55:36 -0600
parents ecda04452d14
children 70fe9fa8b916
files src/audacious/dbus.c
diffstat 1 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/audacious/dbus.c	Sat Nov 17 06:22:27 2007 -0600
+++ b/src/audacious/dbus.c	Sat Nov 17 23:55:36 2007 -0600
@@ -240,6 +240,16 @@
         g_hash_table_insert(md, "genre", value);
     }
 
+    value = tuple_value_to_gvalue(tuple, "codec");
+    if (value != NULL) {
+        g_hash_table_insert(md, "codec", value);
+    }
+
+    value = tuple_value_to_gvalue(tuple, "quality");
+    if (value != NULL) {
+        g_hash_table_insert(md, "quality", value);
+    }
+
     return md;
 }