Variable was being written to and could cause crashes
if multiple elements were parsing xmp at the same time.
Moving it to local scope solves the problem.
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 */
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);