changeset 3972:d02ad27710b8

branch merge
author Yoshiki Yazawa <yaz@cc.rim.or.jp>
date Sun, 18 Nov 2007 21:39:56 +0900
parents b0ae5dbd2f53 (current diff) a4a5bdbdec38 (diff)
children 26c503cdce58
files
diffstat 2 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/NEWS	Sun Nov 18 21:39:28 2007 +0900
+++ b/NEWS	Sun Nov 18 21:39:56 2007 +0900
@@ -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 21:39:28 2007 +0900
+++ b/src/audacious/dbus.c	Sun Nov 18 21:39:56 2007 +0900
@@ -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;
 }