GStreamer: fix artist-related metadata keys.
authorYoann Lopes <yoann.lopes@digia.com>
Mon, 22 Sep 2014 13:06:14 +0000 (15:06 +0200)
committerYoann Lopes <yoann.lopes@digia.com>
Fri, 26 Sep 2014 12:27:42 +0000 (14:27 +0200)
QMediaMetaData::AlbumArtist now maps to GST_TAG_ALBUM_ARTIST and
QMediaMetaData::ContributingArtist to GST_TAG_ARTIST.

Change-Id: Ifa2cb90ee8ae09beaee572ad113c05776e699432
Reviewed-by: Andrew den Exter <andrew.den.exter@qinetic.com.au>
src/plugins/gstreamer/mediaplayer/qgstreamermetadataprovider.cpp

index b470a2c..8ae3a78 100644 (file)
@@ -76,8 +76,10 @@ static const QGstreamerMetaDataKeyLookup *qt_gstreamerMetaDataKeys()
 
         // Music
         metadataKeys->insert(GST_TAG_ALBUM, QMediaMetaData::AlbumTitle);
-        metadataKeys->insert(GST_TAG_ARTIST, QMediaMetaData::AlbumArtist);
-        metadataKeys->insert(GST_TAG_PERFORMER, QMediaMetaData::ContributingArtist);
+#if (GST_VERSION_MAJOR >= 0) && (GST_VERSION_MINOR >= 10) && (GST_VERSION_MICRO >= 25)
+        metadataKeys->insert(GST_TAG_ALBUM_ARTIST, QMediaMetaData::AlbumArtist);
+#endif
+        metadataKeys->insert(GST_TAG_ARTIST, QMediaMetaData::ContributingArtist);
 #if (GST_VERSION_MAJOR >= 0) && (GST_VERSION_MINOR >= 10) && (GST_VERSION_MICRO >= 19)
         metadataKeys->insert(GST_TAG_COMPOSER, QMediaMetaData::Composer);
 #endif