summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoranbr <vdr07@deltab.de>2012-03-10 17:10:41 +0100
committeranbr <vdr07@deltab.de>2012-03-10 17:10:41 +0100
commit8e177847a3e7dd5d449876407d8d834d0e78bd83 (patch)
treedc3a4449fba86224c0ead82be649ec0e8e96c4b7
parente8167b1e13dfc0f3de9d5e859d3e18c502ac55a1 (diff)
downloadvdr-plugin-targavfd-8e177847a3e7dd5d449876407d8d834d0e78bd83.tar.gz
vdr-plugin-targavfd-8e177847a3e7dd5d449876407d8d834d0e78bd83.tar.bz2
Update plugin interface for vdr 1.7.26
-rw-r--r--status.c12
-rw-r--r--status.h4
2 files changed, 12 insertions, 4 deletions
diff --git a/status.c b/status.c
index 115d238..316d438 100644
--- a/status.c
+++ b/status.c
@@ -27,11 +27,15 @@ cVFDStatusMonitor::cVFDStatusMonitor(cVFDWatch* pDev)
}
-void cVFDStatusMonitor::ChannelSwitch(const cDevice *pDevice, int nChannelNumber)
-{
+#if VDRVERSNUM >= 10726
+void cVFDStatusMonitor::ChannelSwitch(const cDevice *pDevice, int nChannelNumber, bool bLiveView) {
+#else
+void cVFDStatusMonitor::ChannelSwitch(const cDevice *pDevice, int nChannelNumber) {
+ bool bLiveView = pDevice && pDevice->IsPrimaryDevice() && false == EITScanner.UsesDevice(pDevice);
+#endif
+
if (nChannelNumber > 0
- && pDevice->IsPrimaryDevice()
- && !EITScanner.UsesDevice(pDevice)
+ && bLiveView
&& (nChannelNumber == cDevice::CurrentChannel()))
{
#ifdef MOREDEBUGMSG
diff --git a/status.h b/status.h
index 7602c41..1f1510e 100644
--- a/status.h
+++ b/status.h
@@ -24,7 +24,11 @@ class cVFDStatusMonitor : public cStatus {
public:
cVFDStatusMonitor(cVFDWatch* pDev);
protected:
+#if VDRVERSNUM >= 10726
+ virtual void ChannelSwitch(const cDevice *Device, int ChannelNumber, bool LiveView);
+#else
virtual void ChannelSwitch(const cDevice *Device, int ChannelNumber);
+#endif
virtual void Recording(const cDevice *pDevice, const char *szName, const char *szFileName, bool bOn);
virtual void Replaying(const cControl *pControl, const char *szName, const char *szFileName, bool bOn);
virtual void SetVolume(int Volume, bool Absolute);