From a08c9724144c9e71d11545cceaa467300229abd4 Mon Sep 17 00:00:00 2001 From: James Cowgill Date: Thu, 29 Sep 2022 09:39:15 +0100 Subject: [PATCH] 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: --- subprojects/gst-plugins-base/gst-libs/gst/tag/gstxmptag.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/subprojects/gst-plugins-base/gst-libs/gst/tag/gstxmptag.c b/subprojects/gst-plugins-base/gst-libs/gst/tag/gstxmptag.c index d0add8b3ce..95031f4b02 100644 --- a/subprojects/gst-plugins-base/gst-libs/gst/tag/gstxmptag.c +++ b/subprojects/gst-plugins-base/gst-libs/gst/tag/gstxmptag.c @@ -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 */