diff options
author | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2019-07-06 12:14:19 +0200 |
---|---|---|
committer | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2019-07-06 13:44:55 +0200 |
commit | ad1f0ba0d62d8a07a069d4403fcd4cdd90f9a1d7 (patch) | |
tree | 2442b5727c75cb70a4fe28746617df5a81c4e978 | |
parent | 69711400fa184bb254808286ffde10b8e97e7c82 (diff) | |
download | vdr-plugin-tvguide-ad1f0ba0d62d8a07a069d4403fcd4cdd90f9a1d7.tar.gz vdr-plugin-tvguide-ad1f0ba0d62d8a07a069d4403fcd4cdd90f9a1d7.tar.bz2 |
Fixed a compiler error for VDR < 2.3.0 and Cosmetic changes
-rw-r--r-- | recmanager.c | 13 | ||||
-rw-r--r-- | searchtimer.h | 5 |
2 files changed, 6 insertions, 12 deletions
diff --git a/recmanager.c b/recmanager.c index 24f897d..eb9a43a 100644 --- a/recmanager.c +++ b/recmanager.c @@ -231,7 +231,8 @@ void cRecManager::DeleteTimer(const cTimer *timer) { cTimers* timers = &Timers; cTimer* t = timers->GetTimer((cTimer*)timer); #endif - + if (!t) + return; if (t->Recording()) { t->Skip(); #if VDRVERSNUM >= 20301 @@ -341,8 +342,7 @@ cTVGuideTimerConflicts *cRecManager::CheckTimerConflict(void) { } void cRecManager::CreateSeriesTimer(cTimer *seriesTimer) { -#if VDRVERSNUM >= 20301 -#else +#if VDRVERSNUM < 20300 seriesTimer->SetEventFromSchedule(); #endif if (tvguideConfig.useRemoteTimers && pRemoteTimers) { @@ -355,12 +355,11 @@ void cRecManager::CreateSeriesTimer(cTimer *seriesTimer) { #if VDRVERSNUM >= 20301 LOCK_TIMERS_WRITE; cTimers* timers = Timers; - timers->Add(seriesTimer); - timers->SetModified(); #else - Timers.Add(seriesTimer); - Timers.SetModified(); + cTimers* timers = &Timers; #endif + timers->Add(seriesTimer); + timers->SetModified(); } } diff --git a/searchtimer.h b/searchtimer.h index b47dc97..65a04c9 100644 --- a/searchtimer.h +++ b/searchtimer.h @@ -12,13 +12,8 @@ protected: int startTime;
int stopTime;
int useChannel;
-#if VDRVERSNUM >= 20301
const cChannel *channelMin;
const cChannel *channelMax;
-#else
- cChannel *channelMin;
- cChannel *channelMax;
-#endif
std::string channelGroup;
int useCase;
int mode;
|