diff options
| author | anbr <vdr07@deltab.de> | 2017-01-29 08:00:50 +0100 |
|---|---|---|
| committer | anbr <vdr07@deltab.de> | 2017-01-29 08:00:50 +0100 |
| commit | 74aa554d002bc42d6368b32528a8d91ae39e44ea (patch) | |
| tree | 2dc160c5eed75d45175f15f32bdef8f0fd0706d6 | |
| parent | 6d360b730f9889cfee76ccb2cbf3375bf734a0df (diff) | |
| download | vdr-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.c | 44 |
1 files changed, 20 insertions, 24 deletions
@@ -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()); } } } |
