diff options
author | anbr <vdr07@deltab.de> | 2012-03-10 17:12:01 +0100 |
---|---|---|
committer | anbr <vdr07@deltab.de> | 2012-03-10 17:12:01 +0100 |
commit | a65492626c3de310cabb5f47af07774c3c473255 (patch) | |
tree | 5fa896d7add0b7cc78142adc447e98c631b09f66 | |
parent | f66c05b344fc865122ecb217b70a2384ce3dfbcd (diff) | |
download | vdr-plugin-imonlcd-a65492626c3de310cabb5f47af07774c3c473255.tar.gz vdr-plugin-imonlcd-a65492626c3de310cabb5f47af07774c3c473255.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 @@ ciMonStatusMonitor::ciMonStatusMonitor(ciMonWatch* pDev) } -void ciMonStatusMonitor::ChannelSwitch(const cDevice *pDevice, int nChannelNumber) -{ +#if VDRVERSNUM >= 10726 +void ciMonStatusMonitor::ChannelSwitch(const cDevice *pDevice, int nChannelNumber, bool bLiveView) { +#else +void ciMonStatusMonitor::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 ciMonStatusMonitor : public cStatus { public: ciMonStatusMonitor(ciMonWatch* 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); |