diff options
author | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2019-04-06 18:22:24 +0200 |
---|---|---|
committer | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2019-04-07 12:56:53 +0200 |
commit | 6f7042d41f74f6ffc443f04cfffda0440b429da4 (patch) | |
tree | 75c27b2dabe696756914b8110e7428e03fdc46a2 /recmanager.c | |
parent | 9009f4f385f949f7337d0044efc32a69a0f558c9 (diff) | |
download | vdr-plugin-tvguide-6f7042d41f74f6ffc443f04cfffda0440b429da4.tar.gz vdr-plugin-tvguide-6f7042d41f74f6ffc443f04cfffda0440b429da4.tar.bz2 |
Correct an error with the recording sign in grid
Diffstat (limited to 'recmanager.c')
-rw-r--r-- | recmanager.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/recmanager.c b/recmanager.c index 45df7b1..015b654 100644 --- a/recmanager.c +++ b/recmanager.c @@ -50,9 +50,17 @@ bool cRecManager::CheckEventForTimer(const cEvent *event) { pRemoteTimers->Service("RemoteTimers::GetMatch-v1.0", &rtMatch); if (rtMatch.timerMatch == tmFull) hasTimer = true; - } else + } else { +#if VDRVERSNUM >= 20301 + eTimerMatch TimerMatch = tmNone; + LOCK_TIMERS_READ; + const cTimers *timers = Timers; + if (timers->GetMatch(event, &TimerMatch) && (TimerMatch == tmFull)) + hasTimer = true; +#else hasTimer = event->HasTimer(); - +#endif + } return hasTimer; } @@ -175,7 +183,6 @@ void cRecManager::SetTimerPath(cTimer *timer, const cEvent *event, std::string p } void cRecManager::DeleteTimer(int timerID) { - dsyslog ("%s %s %d\n", __FILE__, __func__, __LINE__); #if VDRVERSNUM >= 20301 cTimer *t; { @@ -191,7 +198,6 @@ void cRecManager::DeleteTimer(int timerID) { } void cRecManager::DeleteTimer(const cEvent *event) { - dsyslog ("%s %s %d\n", __FILE__, __func__, __LINE__); if (!event) return; if (tvguideConfig.useRemoteTimers && pRemoteTimers) { @@ -202,7 +208,6 @@ void cRecManager::DeleteTimer(const cEvent *event) { } void cRecManager::DeleteLocalTimer(const cEvent *event) { - dsyslog ("%s %s %d\n", __FILE__, __func__, __LINE__); const cTimer *t; #if VDRVERSNUM >= 20301 { @@ -218,7 +223,6 @@ void cRecManager::DeleteLocalTimer(const cEvent *event) { } void cRecManager::DeleteTimer(const cTimer *timer) { - dsyslog ("%s %s %d\n", __FILE__, __func__, __LINE__); #if VDRVERSNUM >= 20301 LOCK_TIMERS_WRITE; cTimers* timers = Timers; |