summaryrefslogtreecommitdiff
path: root/switchtimer.c
diff options
context:
space:
mode:
authorFrank Neumann <fnu@yavdr.org>2017-05-12 15:18:58 +0200
committerFrank Neumann <fnu@yavdr.org>2017-05-12 15:18:58 +0200
commit1b9fb08a555d89a3b9ec9739f2b17563afb43572 (patch)
treed01be17d0bd17336f74c92fdef94212ed33a6121 /switchtimer.c
parent8ede45905dde9f4109f3d4f0d2e8cedc7beee01c (diff)
downloadvdr-plugin-epgsearch-1b9fb08a555d89a3b9ec9739f2b17563afb43572.tar.gz
vdr-plugin-epgsearch-1b9fb08a555d89a3b9ec9739f2b17563afb43572.tar.bz2
0002-removed-variableduplications.diff (thx TomJoad@vdr-portal.de)
Diffstat (limited to 'switchtimer.c')
-rw-r--r--switchtimer.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/switchtimer.c b/switchtimer.c
index 7df4352..af0c721 100644
--- a/switchtimer.c
+++ b/switchtimer.c
@@ -115,9 +115,8 @@ const cEvent* cSwitchTimer::Event()
if (startTime > now)
{
LOCK_SCHEDULES_READ;
- const cSchedules *schedules = Schedules;
- if (!schedules) return NULL;
- const cSchedule *Schedule = schedules->GetSchedule(channelID);
+ if (!Schedules) return NULL;
+ const cSchedule *Schedule = Schedules->GetSchedule(channelID);
if (Schedule)
{
event = Schedule->GetEvent(eventID, startTime);
@@ -137,8 +136,7 @@ cString cSwitchTimer::ToText(bool& ignore)
return NULL;
}
LOCK_CHANNELS_READ;
- const cChannels *vdrchannels = Channels;
- const cChannel *channel = vdrchannels->GetByChannelID(channelID, true, true);
+ const cChannel *channel = Channels->GetByChannelID(channelID, true, true);
if (!channel) return NULL;
cString buffer = cString::sprintf("%s:%u:%ld:%d:%d:%d",
CHANNELSTRING(channel), eventID,