summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoranbr <vdr07@deltab.de>2017-01-29 08:00:50 +0100
committeranbr <vdr07@deltab.de>2017-01-29 08:00:50 +0100
commit74aa554d002bc42d6368b32528a8d91ae39e44ea (patch)
tree2dc160c5eed75d45175f15f32bdef8f0fd0706d6
parent6d360b730f9889cfee76ccb2cbf3375bf734a0df (diff)
downloadvdr-plugin-targavfd-74aa554d002bc42d6368b32528a8d91ae39e44ea.tar.gz
vdr-plugin-targavfd-74aa554d002bc42d6368b32528a8d91ae39e44ea.tar.bz2
Fix: Current epg event don't shown, regression from commit:586585d8 (Closes: #2465)
-rw-r--r--watch.c44
1 files changed, 20 insertions, 24 deletions
diff --git a/watch.c b/watch.c
index 0ac5488..c738982 100644
--- a/watch.c
+++ b/watch.c
@@ -872,31 +872,27 @@ bool cVFDWatch::Program() {
#endif
if (chID.Valid() && schedules) {
const cSchedule * schedule = schedules->GetSchedule(chID);
- if (schedule) {
-
- if ((p = schedule->GetPresentEvent()) != NULL) {
-
- if(chPresentTime && chEventID != p->EventID()) {
- bChanged = true;
- chEventID = p->EventID();
- chPresentTime = p->StartTime();
- chFollowingTime = p->EndTime();
-
- if(chPresentTitle) {
- delete chPresentTitle;
- chPresentTitle = NULL;
- }
- if (!isempty(p->Title())) {
- chPresentTitle = new cString(p->Title());
- }
+ if (schedule && (p = schedule->GetPresentEvent()) != NULL) {
+ if(!chPresentTime || chEventID != p->EventID()) {
+ bChanged = true;
+ chEventID = p->EventID();
+ chPresentTime = p->StartTime();
+ chFollowingTime = p->EndTime();
+
+ if(chPresentTitle) {
+ delete chPresentTitle;
+ chPresentTitle = NULL;
+ }
+ if (!isempty(p->Title())) {
+ chPresentTitle = new cString(p->Title());
+ }
- if(chPresentShortTitle) {
- delete chPresentShortTitle;
- chPresentShortTitle = NULL;
- }
- if (!isempty(p->ShortText())) {
- chPresentShortTitle = new cString(p->ShortText());
- }
+ if(chPresentShortTitle) {
+ delete chPresentShortTitle;
+ chPresentShortTitle = NULL;
+ }
+ if (!isempty(p->ShortText())) {
+ chPresentShortTitle = new cString(p->ShortText());
}
}
}