Mercurial > audlegacy
changeset 4823:732f392b887b
include track number in D-Bus-exported metadata (fixes http://bugs.debian.org/514426)
author | Andrew O. Shadoura <bugzilla@tut.by> |
---|---|
date | Wed, 18 Feb 2009 12:07:46 +0200 |
parents | 74d11e0d60d9 |
children | d8228a5f042e |
files | src/audlegacy/dbus.c |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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; }