summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2014-11-15 09:50:39 +0100
committerlouis <louis.braun@gmx.de>2014-11-15 09:50:39 +0100
commitf89c95be3bf34b6a24b83ee6b5ba2ec499160004 (patch)
tree79f467b9230fa913cef0f6dff93e6a24c28ca4f5
parentbe3b49f695ca8cffef906d893fb2f6f205f75898 (diff)
downloadvdr-plugin-skindesigner-f89c95be3bf34b6a24b83ee6b5ba2ec499160004.tar.gz
vdr-plugin-skindesigner-f89c95be3bf34b6a24b83ee6b5ba2ec499160004.tar.bz2
fixed crash when clearing a message in displaychannel and displayreplay
-rw-r--r--HISTORY1
-rw-r--r--views/displaychannelview.c1
-rw-r--r--views/displayreplayview.c1
3 files changed, 3 insertions, 0 deletions
diff --git a/HISTORY b/HISTORY
index 0732c88..0faf378 100644
--- a/HISTORY
+++ b/HISTORY
@@ -57,4 +57,5 @@ Version 0.0.3
- added tokens {month}, {monthname} and {year} in displaymenutimers listitem and currentitem
- added dedicated tokens for posters and banners in <srapercontent> in displaychannel and displayreplay
- added Plugin Interface
+- fixed crash when clearing a message in displaychannel and displayreplay
diff --git a/views/displaychannelview.c b/views/displaychannelview.c
index 626658f..0c0d8fd 100644
--- a/views/displaychannelview.c
+++ b/views/displaychannelview.c
@@ -515,6 +515,7 @@ string cDisplayChannelView::GetChannelSep(const cChannel *channel, bool prev) {
void cDisplayChannelView::DisplayMessage(eMessageType Type, const char *Text) {
if (!Text) {
ClearViewElement(veMessage);
+ return;
}
map < string, string > stringTokens;
diff --git a/views/displayreplayview.c b/views/displayreplayview.c
index 5777590..680eea6 100644
--- a/views/displayreplayview.c
+++ b/views/displayreplayview.c
@@ -352,6 +352,7 @@ void cDisplayReplayView::DrawJump(const char *jump) {
void cDisplayReplayView::DrawMessage(eMessageType type, const char *text) {
if (!text) {
ClearViewElement(veMessage);
+ return;
}
map < string, string > stringTokens;