From e821cd74a40f2ed40041357c09b3013523eaed98 Mon Sep 17 00:00:00 2001 From: Sergey Hovakimyan Date: Wed, 10 Jul 2024 12:21:49 +0400 Subject: [PATCH] adds a workaround to avoid calling DeleteNamespace since XMP-Toolkit-sdk does not like it anymore --- src/xmp.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/xmp.cpp b/src/xmp.cpp index da6e11c0fd..dedbbd4979 100644 --- a/src/xmp.cpp +++ b/src/xmp.cpp @@ -634,8 +634,9 @@ void XmpParser::terminate() { void XmpParser::registerNs(const std::string& ns, const std::string& prefix) { try { initialize(); - AutoLock autoLock(xmpLockFct_, pLockData_); - SXMPMeta::DeleteNamespace(ns.c_str()); + // apparently we can't delete namespaces anymore + // see WXMPMeta.cpp + // SXMPMeta::DeleteNamespace(ns.c_str()); #ifdef EXV_ADOBE_XMPSDK SXMPMeta::RegisterNamespace(ns.c_str(), prefix.c_str(), nullptr); #else