# HG changeset patch # User Andrew O. Shadoura # Date 1234951666 -7200 # Node ID 732f392b887b3fb3276089133b9980430f1a2654 # Parent 74d11e0d60d9d40ee2051547a58e88948047e9e3 include track number in D-Bus-exported metadata (fixes http://bugs.debian.org/514426) diff -r 74d11e0d60d9 -r 732f392b887b src/audlegacy/dbus.c --- a/src/audlegacy/dbus.c Fri Feb 06 17:57:58 2009 +0200 +++ b/src/audlegacy/dbus.c Wed Feb 18 12:07:46 2009 +0200 @@ -225,6 +225,7 @@ GHashTable *mpris_metadata_from_tuple(Tuple *tuple) { GHashTable *md = NULL; + gpointer value; if (tuple == NULL) return NULL; @@ -240,6 +241,12 @@ tuple_insert_to_hash(md, tuple, "codec"); tuple_insert_to_hash(md, tuple, "quality"); + value = tuple_value_to_gvalue(tuple, "track-number"); + if (value != NULL) + { + g_hash_table_insert(md, "tracknumber", value); + } + return md; }