diff --git a/gst-libs/gst/tag/gstxmptag.c b/gst-libs/gst/tag/gstxmptag.c index 758b9776d2..2697f40fa3 100644 --- a/gst-libs/gst/tag/gstxmptag.c +++ b/gst-libs/gst/tag/gstxmptag.c @@ -957,15 +957,6 @@ struct _GstXmpNamespaceMap const gchar *original_ns; gchar *gstreamer_ns; }; -static GstXmpNamespaceMap ns_map[] = { - {"dc", NULL}, - {"exif", NULL}, - {"tiff", NULL}, - {"xap", NULL}, - {"photoshop", NULL}, - {"Iptc4xmpCore", NULL}, - {NULL, NULL} -}; /* parsing */ @@ -1153,6 +1144,16 @@ gst_tag_list_from_xmp_buffer (const GstBuffer * buffer) XmpTag *last_xmp_tag = NULL; GSList *pending_tags = NULL; + GstXmpNamespaceMap ns_map[] = { + {"dc", NULL}, + {"exif", NULL}, + {"tiff", NULL}, + {"xap", NULL}, + {"photoshop", NULL}, + {"Iptc4xmpCore", NULL}, + {NULL, NULL} + }; + xmp_tags_initialize (); g_return_val_if_fail (GST_IS_BUFFER (buffer), NULL);