xmptag: Call gst_tag_register_musicbrainz_tags during init

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/3095>
This commit is contained in:
James Cowgill 2022-09-29 09:39:15 +01:00 committed by Tim-Philipp Müller
parent 1c8244a19d
commit a08c972414

View 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 */