pulse: use 'performer' as a fallback for 'artist' tag
authorLennart Poettering <lennart@poettering.net>
Fri, 16 Oct 2009 22:10:30 +0000 (00:10 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Sat, 17 Oct 2009 06:48:23 +0000 (08:48 +0200)
ext/pulse/pulsesink.c

index 7303324..dd47c33 100644 (file)
@@ -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),