Skip to content

Commit

Permalink
adds a workaround to avoid calling DeleteNamespace since XMP-Toolkit-…
Browse files Browse the repository at this point in the history
…sdk does not like it anymore
  • Loading branch information
serghov committed Jul 17, 2024
1 parent accf0d8 commit e821cd7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/xmp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e821cd7

Please sign in to comment.