summaryrefslogtreecommitdiff
path: root/channeljump.c
diff options
context:
space:
mode:
authorkamel5 <kamel5 (at) gmx (dot) net>2018-03-08 13:02:38 +0100
committerkamel5 <vdr.kamel5 (at) gmx (dot) net>2019-01-27 11:29:38 +0100
commitcbc6f442648a0aea4b94d81176f044c642a7d2b0 (patch)
tree3bfdc0baebcbaec7845edcc521b4041e6a25035c /channeljump.c
parent8287bb5f7deef757f38b3e2a4ed5a08a57881f7e (diff)
downloadvdr-plugin-tvguide-cbc6f442648a0aea4b94d81176f044c642a7d2b0.tar.gz
vdr-plugin-tvguide-cbc6f442648a0aea4b94d81176f044c642a7d2b0.tar.bz2
Compile under VDR 2.3.1
Diffstat (limited to 'channeljump.c')
-rw-r--r--channeljump.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/channeljump.c b/channeljump.c
index 58fa77f..8793217 100644
--- a/channeljump.c
+++ b/channeljump.c
@@ -11,7 +11,12 @@ cChannelJump::cChannelJump(cChannelGroups *channelGroups) {
pixmapText = NULL;
channel = 0;
if (!tvguideConfig.hideLastGroup) {
+#if defined (APIVERSNUM) && (APIVERSNUM >= 20301)
+ LOCK_CHANNELS_READ;
+ maxChannels = Channels->MaxNumber();
+#else
maxChannels = Channels.MaxNumber();
+#endif
} else {
maxChannels = channelGroups->GetLastValidChannel();
}