summaryrefslogtreecommitdiff
path: root/imagemagickwrapper.c
diff options
context:
space:
mode:
Diffstat (limited to 'imagemagickwrapper.c')
-rw-r--r--imagemagickwrapper.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/imagemagickwrapper.c b/imagemagickwrapper.c
index 6198dfc..cbaf623 100644
--- a/imagemagickwrapper.c
+++ b/imagemagickwrapper.c
@@ -77,21 +77,21 @@ bool cImageMagickWrapper::LoadImage(std::string FileName, std::string Path, std:
std::stringstream sstrImgFile;
sstrImgFile << Path << FileName << "." << Extension;
std::string imgFile = sstrImgFile.str();
- if (tvguideConfig.debugImageLoading)
+ if (config.debugImageLoading)
esyslog("tvguide: trying to load: %s", imgFile.c_str());
buffer.read(imgFile.c_str());
- if (tvguideConfig.debugImageLoading)
+ if (config.debugImageLoading)
esyslog("tvguide: %s sucessfully loaded", imgFile.c_str());
} catch( Magick::Warning &warning ) {
- if (tvguideConfig.debugImageLoading)
+ if (config.debugImageLoading)
esyslog("tvguide: Magick Warning: %s", warning.what());
return true;
} catch( Magick::Error &error ) {
- if (tvguideConfig.debugImageLoading)
+ if (config.debugImageLoading)
esyslog("tvguide: Magick Error: %s", error.what());
return false;
} catch(...) {
- if (tvguideConfig.debugImageLoading)
+ if (config.debugImageLoading)
esyslog("tvguide: an unknown Magick error occured during image loading");
return false;
}
@@ -102,21 +102,21 @@ bool cImageMagickWrapper::LoadImage(const char *fullpath) {
if ((fullpath == NULL) || (strlen(fullpath) < 5))
return false;
try {
- if (tvguideConfig.debugImageLoading)
+ if (config.debugImageLoading)
esyslog("tvguide: trying to load: %s", fullpath);
buffer.read(fullpath);
- if (tvguideConfig.debugImageLoading)
+ if (config.debugImageLoading)
esyslog("tvguide: %s sucessfully loaded", fullpath);
} catch( Magick::Warning &warning ) {
- if (tvguideConfig.debugImageLoading)
+ if (config.debugImageLoading)
esyslog("tvguide: Magick Warning: %s", warning.what());
return true;
} catch( Magick::Error &error ) {
- if (tvguideConfig.debugImageLoading)
+ if (config.debugImageLoading)
esyslog("tvguide: Magick Error: %s", error.what());
return false;
} catch(...) {
- if (tvguideConfig.debugImageLoading)
+ if (config.debugImageLoading)
esyslog("tvguide: an unknown Magick error occured during image loading");
return false;
}