[xmpsdk] Add XMP Initialisation/Cleanup code to all main() programs

- update documentation
- Removed redundant calls to Exiv2::XmpParser::terminate() (legacy of our
  discusssion with @tester0077).
- this fixes #976
This commit is contained in:
Robin Mills
2019-08-01 17:36:10 +01:00
committed by Dan Čermák
parent a82098f4f9
commit 7844b11e4b
41 changed files with 162 additions and 10 deletions
+3
View File
@@ -20,6 +20,9 @@ static int testSyntax(const char* arg)
int main(int argc,const char** argv)
{
Exiv2::XmpParser::initialize();
::atexit(Exiv2::XmpParser::terminate);
if ( argc < 2 ) {
std::cout << "usage : " << argv[0] << " [key value]+" << std::endl;
std::cout << "example: " << argv[0] << " [[-url] url | -server clanmills.com -page /LargsPanorama.jpg] -header \"Range: bytes=0-200\"" << std::endl;