summaryrefslogtreecommitdiff
path: root/switchtimer_thread.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_thread.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_thread.c')
-rw-r--r--switchtimer_thread.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/switchtimer_thread.c b/switchtimer_thread.c
index 9da5421..be1c12a 100644
--- a/switchtimer_thread.c
+++ b/switchtimer_thread.c
@@ -89,8 +89,7 @@ void cSwitchTimerThread::Action(void)
if (switchTimer->startTime - now < switchTimer->switchMinsBefore*60 + MSG_DELAY + 1)
{
LOCK_CHANNELS_READ;
- const cChannels *vdrchannels = Channels;
- const cChannel *channel = vdrchannels->GetByChannelID(switchTimer->channelID, true, true);
+ const cChannel *channel = Channels->GetByChannelID(switchTimer->channelID, true, true);
bool doSwitch = (switchTimer->mode == 0);
bool doAsk = (switchTimer->mode == 2);
bool doUnmute = switchTimer->unmute;