diff options
-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); |