summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlordjaxom <lordjaxom>2005-01-11 17:55:31 +0000
committerlordjaxom <lordjaxom>2005-01-11 17:55:31 +0000
commitf95be33f7fe4559d3d243f4f00d1669f1cb2fdc6 (patch)
tree7a96852698913bb818ad8e06a38d5a45341dc2c8
parent852450cea6cb421da53843824164a983172df104 (diff)
downloadvdr-plugin-text2skin-f95be33f7fe4559d3d243f4f00d1669f1cb2fdc6.tar.gz
vdr-plugin-text2skin-f95be33f7fe4559d3d243f4f00d1669f1cb2fdc6.tar.bz2
- now catching unknown exceptions as well as ImageMagick exceptions
-rw-r--r--bitmap.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/bitmap.c b/bitmap.c
index a75a407..fc5413c 100644
--- a/bitmap.c
+++ b/bitmap.c
@@ -1,5 +1,5 @@
/*
- * $Id: bitmap.c,v 1.3 2004/12/28 01:54:02 lordjaxom Exp $
+ * $Id: bitmap.c,v 1.4 2005/01/11 17:55:31 lordjaxom Exp $
*/
#include "bitmap.h"
@@ -230,6 +230,11 @@ bool cText2SkinBitmap::LoadMagick(const char *Filename, int height, int width, i
esyslog("ERROR: text2skin: Couldn't load %s: %s", Filename, e.what());
delete bmp;
return false;
+ } catch (...) {
+ if (!Quiet)
+ esyslog("ERROR: text2skin: Couldn't load %s: Unknown exception caught", Filename);
+ delete bmp;
+ return false;
}
return true;
}