comparison src/exiv2.cc @ 286:f517bbd7542a

Make xmp debug info only appears when debug >= 2.
author zas_
date Tue, 08 Apr 2008 23:39:27 +0000
parents 9995c5fb202a
children 0fc0a130e8cf
comparison
equal deleted inserted replaced
285:6917ea10738c 286:f517bbd7542a
64 image = Exiv2::ImageFactory::open(path); 64 image = Exiv2::ImageFactory::open(path);
65 // g_assert (image.get() != 0); 65 // g_assert (image.get() != 0);
66 image->readMetadata(); 66 image->readMetadata();
67 67
68 #if EXIV2_TEST_VERSION(0,16,0) 68 #if EXIV2_TEST_VERSION(0,16,0)
69 printf("xmp count %d\n", image->xmpData().count()); 69 if (debug >= 2) printf("xmp count %d\n", image->xmpData().count());
70 if (sidecar_path && image->xmpData().empty()) 70 if (sidecar_path && image->xmpData().empty())
71 { 71 {
72 sidecar = Exiv2::ImageFactory::open(sidecar_path); 72 sidecar = Exiv2::ImageFactory::open(sidecar_path);
73 sidecar->readMetadata(); 73 sidecar->readMetadata();
74 have_sidecar = sidecar->good(); 74 have_sidecar = sidecar->good();
75 printf("sidecar xmp count %d\n", sidecar->xmpData().count()); 75 if (debug >= 2) printf("sidecar xmp count %d\n", sidecar->xmpData().count());
76 } 76 }
77 77
78 #endif 78 #endif
79 } 79 }
80 80