summaryrefslogtreecommitdiff
path: root/menu_switchtimers.c
diff options
context:
space:
mode:
authorFrank Neumann <fnu@yavdr.org>2017-05-12 15:21:03 +0200
committerFrank Neumann <fnu@yavdr.org>2017-05-12 15:21:03 +0200
commit5bc9ebbb9a64f9c835528b821d040e6a7c067a4b (patch)
treee8320c367e84518919453184eaa1b1d6990d635b /menu_switchtimers.c
parent1b9fb08a555d89a3b9ec9739f2b17563afb43572 (diff)
downloadvdr-plugin-epgsearch-5bc9ebbb9a64f9c835528b821d040e6a7c067a4b.tar.gz
vdr-plugin-epgsearch-5bc9ebbb9a64f9c835528b821d040e6a7c067a4b.tar.bz2
0003-more-cleanups.diff (thx TomJoad@vdr-portal.de)
Diffstat (limited to 'menu_switchtimers.c')
-rw-r--r--menu_switchtimers.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/menu_switchtimers.c b/menu_switchtimers.c
index 59e9217..ab14c1f 100644
--- a/menu_switchtimers.c
+++ b/menu_switchtimers.c
@@ -135,8 +135,7 @@ void cMenuSwitchTimerItem::Set()
strftime(datebuf, sizeof(datebuf), "%d.%m", tm);
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);
msprintf(&buffer, "%s\t%d\t%s\t%s\t%d\'\t%s~%s", switchTimer->mode==1?"":">", channel?channel->Number():-1, datebuf, TIMESTRING(startTime), switchTimer->switchMinsBefore, event->Title()?event->Title():"", event->ShortText()?event->ShortText():"");
SetText(buffer, false);