diff options
author | louis <louis.braun@gmx.de> | 2013-09-14 13:04:41 +0200 |
---|---|---|
committer | louis <louis.braun@gmx.de> | 2013-09-14 13:04:41 +0200 |
commit | 48e4fa3c8bf91bb7506059ced8ff333126a0c492 (patch) | |
tree | 888f85d51e4c255e46cb428e34114917f80e7d27 | |
parent | 114236159072f57cd692a2e91b8700e77d7e8ebc (diff) | |
download | skin-nopacity-48e4fa3c8bf91bb7506059ced8ff333126a0c492.tar.gz skin-nopacity-48e4fa3c8bf91bb7506059ced8ff333126a0c492.tar.bz2 |
fixed a segfault in displaychannel
-rw-r--r-- | displaychannel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/displaychannel.c b/displaychannel.c index 1af5868..345e6d9 100644 --- a/displaychannel.c +++ b/displaychannel.c @@ -567,7 +567,7 @@ void cNopacityDisplayChannel::SetChannel(const cChannel *Channel, int Number) { cImageLoader imgLoader; if (imgLoader.LoadLogo(*ChannelName)) { pixmapLogo->DrawImage(cPoint(config.logoBorder, (height-config.logoHeight)/2), imgLoader.GetImage()); - } else if (imgLoader.LoadLogo(*(Channel->GetChannelID().ToString()))) { + } else if (Channel && imgLoader.LoadLogo(*(Channel->GetChannelID().ToString()))) { pixmapLogo->DrawImage(cPoint(config.logoBorder, (height-config.logoHeight)/2), imgLoader.GetImage()); } } |