changeset 3970:a4a5bdbdec38

Automated merge with ssh://hg.atheme.org//hg/audacious
author William Pitcock <nenolod@atheme.org>
date Sat, 17 Nov 2007 23:56:50 -0600
parents 70fe9fa8b916 (diff) efd7ec36483e (current diff)
children d02ad27710b8
files
diffstat 2 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/NEWS	Sun Nov 18 14:49:52 2007 +0900
+++ b/NEWS	Sat Nov 17 23:56:50 2007 -0600
@@ -19,6 +19,7 @@
   rework of the codec detection system, this is the recommended setting.
   (Audacious can process a large directory in only a few seconds of blocking 
    this way, and streams are entirely processed in background this way.)
+* Add codec and quality fields to MPRIS TrackInfo tuples sent over DBus.
 
 Bugfixes:
 * [Bugzilla #53]: UTF-8 validation gives false positives
--- a/src/audacious/dbus.c	Sun Nov 18 14:49:52 2007 +0900
+++ b/src/audacious/dbus.c	Sat Nov 17 23:56:50 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;
 }