summaryrefslogtreecommitdiff
path: root/status.c
diff options
context:
space:
mode:
Diffstat (limited to 'status.c')
-rw-r--r--status.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/status.c b/status.c
index aff12ac..7404b9a 100644
--- a/status.c
+++ b/status.c
@@ -14,8 +14,11 @@ cStatusBlock::cStatusBlock(void):
cStatus()
{
}
-
+#if VDRVERSNUM < 10726
void cStatusBlock::ChannelSwitch(const cDevice *Device, int ChannelNumber)
+#else
+void cStatusBlock::ChannelSwitch(const cDevice *Device, int ChannelNumber, bool LiveView)
+#endif
{
int current_channel=cDevice::CurrentChannel();
#ifdef LOGGING
@@ -49,7 +52,11 @@ void cStatusBlock::ChannelSwitch(const cDevice *Device, int ChannelNumber)
}
#endif
+#if VDRVERSNUM < 10726
if (Device->DeviceNumber()!=cDevice::PrimaryDevice()->DeviceNumber())
+#else
+ if (!LiveView)
+#endif
{
#ifdef LOGGING
dsyslog("plugin-block: Did nothing cause ChannelSwitch not on active livedevice.");