diff options
author | kamel5 <kamel5 (at) gmx (dot) net> | 2018-05-04 11:11:04 +0200 |
---|---|---|
committer | kamel5 <kamel5 (at) gmx (dot) net> | 2018-05-04 11:11:04 +0200 |
commit | 40c59a6b4f8dae37d8684447e3ba0bb96ad56f57 (patch) | |
tree | 22ade0cd09b460a055f7a6213a3deb1b39d7ca98 | |
parent | da85481fe0737ead0a0f6cc031d9d8ed23f89692 (diff) | |
download | skin-nopacity-40c59a6b4f8dae37d8684447e3ba0bb96ad56f57.tar.gz skin-nopacity-40c59a6b4f8dae37d8684447e3ba0bb96ad56f57.tar.bz2 |
Display Rec for next Event only if Active
-rw-r--r-- | displaychannelview.c | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/displaychannelview.c b/displaychannelview.c index ece2edf..aac366a 100644 --- a/displaychannelview.c +++ b/displaychannelview.c @@ -377,19 +377,26 @@ void cNopacityDisplayChannelView::ClearProgressBar(void) { void cNopacityDisplayChannelView::DrawEvents(const cEvent *Present, const cEvent *Following) { if (Present) { bool recCurrent = false; - eTimerMatch TimerMatch = tmNone; - const cTimer *Timer; { LOCK_TIMERS_READ; - Timer = Timers->GetMatch(Present, &TimerMatch); - } + eTimerMatch TimerMatch = tmNone; + const cTimer *Timer = Timers->GetMatch(Present, &TimerMatch); if (Timer && Timer->Recording()) { recCurrent = true; + } } DrawEPGInfo(Present, true, recCurrent); } if (Following) { - bool recFollowing = Following->HasTimer(); + bool recFollowing = false; + { + LOCK_TIMERS_READ; + eTimerMatch TimerMatch = tmNone; + const cTimer *Timer = Timers->GetMatch(Following, &TimerMatch); + if (Timer && Timer->HasFlags(tfActive)) { + recFollowing = true; + } + } DrawEPGInfo(Following, false, recFollowing); } } |