diff options
author | anbr <vdr07@deltab.de> | 2012-03-10 17:10:41 +0100 |
---|---|---|
committer | anbr <vdr07@deltab.de> | 2012-03-10 17:10:41 +0100 |
commit | 8e177847a3e7dd5d449876407d8d834d0e78bd83 (patch) | |
tree | dc3a4449fba86224c0ead82be649ec0e8e96c4b7 | |
parent | e8167b1e13dfc0f3de9d5e859d3e18c502ac55a1 (diff) | |
download | vdr-plugin-targavfd-8e177847a3e7dd5d449876407d8d834d0e78bd83.tar.gz vdr-plugin-targavfd-8e177847a3e7dd5d449876407d8d834d0e78bd83.tar.bz2 |
Update plugin interface for vdr 1.7.26
-rw-r--r-- | status.c | 12 | ||||
-rw-r--r-- | status.h | 4 |
2 files changed, 12 insertions, 4 deletions
@@ -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 @@ -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); |