diff src/audacious/dbus.c @ 3968:f1ed63913f1c

Add MPRIS codec and quality fields.
author William Pitcock <nenolod@atheme.org>
date Sat, 17 Nov 2007 23:55:36 -0600
parents 37963a32f627
children dfe5d686749e
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;
 }