# HG changeset patch # User William Pitcock # Date 1195365410 21600 # Node ID a4a5bdbdec38792456c729782614ca6b758b7868 # Parent 70fe9fa8b91674dacf2f09e03caa8d78973d937f# Parent efd7ec36483ea39f0ec6107bce59ba9e3eaa8467 Automated merge with ssh://hg.atheme.org//hg/audacious diff -r efd7ec36483e -r a4a5bdbdec38 NEWS --- 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 diff -r efd7ec36483e -r a4a5bdbdec38 src/audacious/dbus.c --- 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; }