diff options
author | lordjaxom <lordjaxom> | 2005-01-02 20:16:20 +0000 |
---|---|---|
committer | lordjaxom <lordjaxom> | 2005-01-02 20:16:20 +0000 |
commit | ca422ee0ed15ff5a1e990a8d74e7e76221904a6e (patch) | |
tree | e7b7b42fa65e6a3b252064b4d7db984a3ae7b58d | |
parent | 275c485ad459341c0b68262ea7947e0ba5197d1d (diff) | |
download | vdr-plugin-text2skin-ca422ee0ed15ff5a1e990a8d74e7e76221904a6e.tar.gz vdr-plugin-text2skin-ca422ee0ed15ff5a1e990a8d74e7e76221904a6e.tar.bz2 |
- fixed segfault when display is missing in the xml
-rw-r--r-- | render.c | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -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(); |