summaryrefslogtreecommitdiff
path: root/pvrinput.c
diff options
context:
space:
mode:
Diffstat (limited to 'pvrinput.c')
-rw-r--r--pvrinput.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/pvrinput.c b/pvrinput.c
index b001c85..a0b0d8c 100644
--- a/pvrinput.c
+++ b/pvrinput.c
@@ -6,7 +6,7 @@
#endif
#endif
-static const char *VERSION = "2014-01-11";
+static const char *VERSION = "2015-11-07";
static const char *DESCRIPTION = tr("use Hauppauge PVR as input device");
static const char *MAINMENUENTRY = tr("PVR picture settings");
@@ -86,7 +86,13 @@ const char *cPluginPvrInput::MainMenuEntry(void)
cOsdObject *cPluginPvrInput::MainMenuAction(void)
{
- cChannel *channel = Channels.GetByNumber(cDevice::CurrentChannel());
+#if VDRVERSNUM > 20300
+ LOCK_CHANNELS_READ
+ const cChannels *vdrchannels = Channels;
+#else
+ cChannels *vdrchannels = &Channels;
+#endif
+ const cChannel *channel = vdrchannels->GetByNumber(cDevice::CurrentChannel());
#if VDRVERSNUM < 10713
if (channel && channel->IsPlug())
return new cPvrMenuMain();