Commit 4645a989 authored by Massimo Valentini's avatar Massimo Valentini Committed by Jehan

Bug 792352: No namespace info available for XMP prefix `darktable'

Also avoids creating a Gexiv2Metadata object leaked every time
gimp_metadata_new() is called.
parent e7c3c9f5
......@@ -183,6 +183,12 @@ gimp_metadata_class_init (GimpMetadataClass *klass)
g_printerr ("Failed to register XMP namespace 'DICOM'\n");
}
if (! gexiv2_metadata_register_xmp_namespace ("http://darktable.sf.net/",
"darktable"))
{
g_printerr ("Failed to register XMP namespace 'darktable'\n");
}
/* Usage example Xmp.GIMP.tagname */
if (! gexiv2_metadata_register_xmp_namespace ("http://www.gimp.org/xmp/",
"GIMP"))
......@@ -472,7 +478,6 @@ gimp_metadata_new (void)
if (gexiv2_initialize ())
{
metadata = g_object_new (GIMP_TYPE_METADATA, NULL);
gexiv2_metadata_new ();
if (! gexiv2_metadata_open_buf (GEXIV2_METADATA (metadata),
wilber_jpg, wilber_jpg_len,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment