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/viewdisplaychannel.c | 3 --- coreengine/viewelementsdisplaychannel.c | 6 +++++- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'coreengine') diff --git a/coreengine/viewdisplaychannel.c b/coreengine/viewdisplaychannel.c index 156c01b..0a9b8aa 100644 --- a/coreengine/viewdisplaychannel.c +++ b/coreengine/viewdisplaychannel.c @@ -261,9 +261,6 @@ void cViewChannel::SetEvents(const cEvent *present, const cEvent *following) { if (veProgressBar) veProgressBar->Set(present); - if (!present && !following) - return; - if (veEpgInfo) veEpgInfo->Set(present, following); 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