diff options
author | Lennart Poettering <lennart@poettering.net> | 2009-10-17 00:10:30 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2009-10-17 00:16:38 +0200 |
commit | 874214689cc60f18c2ba5bfded181db4baf55ea4 (patch) | |
tree | 07d214018b3b1ff0c0d1d3a11b0767b3518f273c | |
parent | 54afa56a0df9264317db7af5f7c50bd9e2bb2e44 (diff) |
pulse: use 'performer' as a fallback for 'artist' tag
-rw-r--r-- | ext/pulse/pulsesink.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ext/pulse/pulsesink.c b/ext/pulse/pulsesink.c index 7303324e..dd47c336 100644 --- a/ext/pulse/pulsesink.c +++ b/ext/pulse/pulsesink.c @@ -2083,6 +2083,10 @@ gst_pulsesink_change_props (GstPulseSink * psink, GstTagList * l) { static const gchar *const map[] = { GST_TAG_TITLE, PA_PROP_MEDIA_TITLE, + + /* might get overriden in the next iteration by GST_TAG_ARTIST */ + GST_TAG_PERFORMER, PA_PROP_MEDIA_ARTIST, + GST_TAG_ARTIST, PA_PROP_MEDIA_ARTIST, GST_TAG_LANGUAGE_CODE, PA_PROP_MEDIA_LANGUAGE, GST_TAG_LOCATION, PA_PROP_MEDIA_FILENAME, @@ -2171,6 +2175,9 @@ gst_pulsesink_event (GstBaseSink * sink, GstEvent * event) gst_tag_list_get_string (l, GST_TAG_LOCATION, &location); gst_tag_list_get_string (l, GST_TAG_DESCRIPTION, &description); + if (!artist) + gst_tag_list_get_string (l, GST_TAG_PERFORMER, &artist); + if (title && artist) t = buf = g_strdup_printf (_("'%s' by '%s'"), g_strstrip (title), |