diff options
author | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2019-07-04 13:14:14 +0200 |
---|---|---|
committer | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2019-07-04 13:16:13 +0200 |
commit | 0b37464dd08361f3cc8ac2a3ee25a068418c4419 (patch) | |
tree | 6d71c2c42c1c4f3142bc19bcc44beefc8af2aba0 /recmenus.c | |
parent | cf171d8732e18a6889188e2ad25b392500cb6e88 (diff) | |
download | vdr-plugin-tvguide-0b37464dd08361f3cc8ac2a3ee25a068418c4419.tar.gz vdr-plugin-tvguide-0b37464dd08361f3cc8ac2a3ee25a068418c4419.tar.bz2 |
Change SetStartChannel() and SetStopChannel()
Diffstat (limited to 'recmenus.c')
-rw-r--r-- | recmenus.c | 14 |
1 files changed, 12 insertions, 2 deletions
@@ -915,8 +915,18 @@ cTVGuideSearchTimer cRecMenuSearchTimerEdit::GetSearchTimer(void) { searchTimer.SetUseSubtitle(sT.useSubtitle); searchTimer.SetUseDesription(sT.useDescription); if (sT.useChannel == 1) { - searchTimer.SetStartChannel(startChannel); - searchTimer.SetStopChannel(stopChannel); +#if VDRVERSNUM >= 20301 + { + LOCK_CHANNELS_READ; + sT.channelMin = Channels->GetByNumber(startChannel); + sT.channelMax = Channels->GetByNumber(stopChannel); + } +#else + sT.channelMin = Channels.GetByNumber(startChannel); + sT.channelMax = Channels.GetByNumber(stopChannel); +#endif + searchTimer.SetStartChannel(sT.channelMin); + searchTimer.SetStopChannel(sT.channelMax); } if (sT.useChannel == 2) { if (channelgroups.size() > 0) { |