xmptag: Call gst_tag_register_musicbrainz_tags during init
authorJames Cowgill <james.cowgill@blaize.com>
Thu, 29 Sep 2022 08:39:15 +0000 (09:39 +0100)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Thu, 29 Sep 2022 23:29:20 +0000 (23:29 +0000)
We need to call this to register the MusixBrainz tags before we use
them in an XMP schema.

Fixes this critical when attempting to run jpegparse on a JPEG
containing MusicBrainz XMP tags:

  GStreamer-CRITICAL **: 20:41:07.885: gst_tag_get_type: assertion 'info != NULL' failed

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3092>

subprojects/gst-plugins-base/gst-libs/gst/tag/gstxmptag.c

index d0add8b..95031f4 100644 (file)
@@ -941,6 +941,8 @@ _init_xmp_tag_map (gpointer user_data)
   XmpTag *xmpinfo;
   GstXmpSchema *schema;
 
+  gst_tag_register_musicbrainz_tags ();
+
   __xmp_schemas = g_hash_table_new (g_direct_hash, g_direct_equal);
 
   /* add the maps */