diff options
author | mrwastl <mrwastl@users.sourceforge.net> | 2012-03-11 19:17:17 +0100 |
---|---|---|
committer | mrwastl <mrwastl@users.sourceforge.net> | 2012-03-11 19:17:17 +0100 |
commit | 3c20bf87becd03e85151e4c6b8d5ff0cc5651980 (patch) | |
tree | ca163d0b7b1debc054f53973ad20248fad2d77ce /state.c | |
parent | c96d8fa5ae09b317108585fd1b8dd2d145aac07e (diff) | |
download | vdr-plugin-graphlcd-3c20bf87becd03e85151e4c6b8d5ff0cc5651980.tar.gz vdr-plugin-graphlcd-3c20bf87becd03e85151e4c6b8d5ff0cc5651980.tar.bz2 |
added support for >= VDR 1.7.26 (modified API)
Diffstat (limited to 'state.c')
-rw-r--r-- | state.c | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -90,12 +90,16 @@ cGraphLCDState::~cGraphLCDState() { } -void cGraphLCDState::ChannelSwitch(const cDevice * Device, int ChannelNumber) -{ +#if VDRVERSNUM >= 10726 +void cGraphLCDState::ChannelSwitch(const cDevice * Device, int ChannelNumber, bool LiveView) { +#else +void cGraphLCDState::ChannelSwitch(const cDevice * Device, int ChannelNumber) { + bool LiveView = Device->IsPrimaryDevice() && !EITScanner.UsesDevice(Device); +#endif //printf("graphlcd plugin: cGraphLCDState::ChannelSwitch %d %d\n", Device->CardIndex(), ChannelNumber); if (GraphLCDSetup.PluginActive) { - if (ChannelNumber > 0 && Device->IsPrimaryDevice() && !EITScanner.UsesDevice(Device)) + if (ChannelNumber > 0 && LiveView) { if (ChannelNumber == cDevice::CurrentChannel()) { |