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/3092>
This commit is contained in:
James Cowgill 2022-09-29 09:39:15 +01:00 committed by GStreamer Marge Bot
parent d2c13f0c26
commit 4edfc86c2a

View file

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