From 4a89d28f03c38c53db3290b5f1e8d5569f3e91b1 Mon Sep 17 00:00:00 2001 From: kamel5 Date: Tue, 25 May 2021 17:33:13 +0200 Subject: Fix display of events in channel display When switching to a channel without EPG, the display of the current and following program was not updated. --- coreengine/viewelementsdisplaychannel.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'coreengine/viewelementsdisplaychannel.c') diff --git a/coreengine/viewelementsdisplaychannel.c b/coreengine/viewelementsdisplaychannel.c index 95d040e..c931557 100644 --- a/coreengine/viewelementsdisplaychannel.c +++ b/coreengine/viewelementsdisplaychannel.c @@ -176,6 +176,8 @@ bool cVeDcEpgInfo::Parse(bool force) { } void cVeDcEpgInfo::Close(void) { + current = NULL; + next = NULL; tokenContainer->Clear(); cViewElement::Close(); } @@ -228,6 +230,7 @@ void cVeDcProgressBar::Close(void) { currentLast = -1; startTime = -1; duration = -1; + tokenContainer->Clear(); cViewElement::Close(); } @@ -617,7 +620,8 @@ void cVeDcScraperContent::SetTokenContainer(void) { void cVeDcScraperContent::Set(const cEvent *e) { tokenContainer->Clear(); - SetPosterBanner(tokenContainer, e, NULL); + if (e) + SetPosterBanner(tokenContainer, e, NULL); SetDirty(); } -- cgit v1.2.3