summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlordjaxom <lordjaxom>2005-01-02 20:16:20 +0000
committerlordjaxom <lordjaxom>2005-01-02 20:16:20 +0000
commitca422ee0ed15ff5a1e990a8d74e7e76221904a6e (patch)
treee7b7b42fa65e6a3b252064b4d7db984a3ae7b58d
parent275c485ad459341c0b68262ea7947e0ba5197d1d (diff)
downloadvdr-plugin-text2skin-ca422ee0ed15ff5a1e990a8d74e7e76221904a6e.tar.gz
vdr-plugin-text2skin-ca422ee0ed15ff5a1e990a8d74e7e76221904a6e.tar.bz2
- fixed segfault when display is missing in the xml
-rw-r--r--render.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/render.c b/render.c
index 148bff8..5e65ace 100644
--- a/render.c
+++ b/render.c
@@ -1,5 +1,5 @@
/*
- * $Id: render.c,v 1.13 2005/01/02 19:58:30 lordjaxom Exp $
+ * $Id: render.c,v 1.14 2005/01/02 20:16:20 lordjaxom Exp $
*/
#include "render.h"
@@ -35,10 +35,15 @@ cText2SkinRender::cText2SkinRender(cText2SkinLoader *Loader, cxDisplay::eType Di
mNow(0),
mBaseSize()
{
+ if (mDisplay == NULL) {
+ esyslog("ERROR: text2skin: display for %s missing", cxDisplay::GetType(Display));
+ return;
+ }
+
mRender = this;
Text2SkinStatus.SetRender(this);
- SetDescription("Text2Skin: %s display update", mDisplay->GetType().c_str());
+ SetDescription("Text2Skin: %s display update", cxDisplay::GetType(Display).c_str());
if (mBasePath.length() == 0)
mBasePath = SkinPath() + "/" + mSkin->Name();