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

Also avoids creating a Gexiv2Metadata object leaked every time
gimp_metadata_new() is called.
This commit is contained in:
Massimo Valentini 2018-01-09 07:58:01 +01:00 committed by Jehan
parent e7c3c9f575
commit 4645a98915
1 changed files with 6 additions and 1 deletions

View File

@ -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,