diff options
author | Martin Schirrmacher <vdr.zaphistory@schirrmacher.eu> | 2015-12-09 20:09:19 +0100 |
---|---|---|
committer | Martin Schirrmacher <vdr.zaphistory@schirrmacher.eu> | 2015-12-09 20:09:19 +0100 |
commit | 484b48a61c841a72c12c3a347bbafd0b96826da3 (patch) | |
tree | 09d1e1825125d11d33529e275552563795d049e8 /monitor.c | |
parent | 111b0cc69414d8025a66b3325a65d7286be87df7 (diff) | |
download | vdr-plugin-zaphistory-484b48a61c841a72c12c3a347bbafd0b96826da3.tar.gz vdr-plugin-zaphistory-484b48a61c841a72c12c3a347bbafd0b96826da3.tar.bz2 |
Diffstat (limited to 'monitor.c')
-rw-r--r-- | monitor.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -18,7 +18,12 @@ void cZapHistoryMonitor::ChannelSwitch(const cDevice *Device, int ChannelNumber, // Inform history, that channel has been switched if (ChannelNumber > 0 && Device->IsPrimaryDevice() && LiveView ) { +#if APIVERSNUM >= 20301 + LOCK_CHANNELS_READ; + ZapHistory.ChannelSwitch( Channels->GetByNumber (ChannelNumber) ); +#else ZapHistory.ChannelSwitch( Channels.GetByNumber (ChannelNumber) ); +#endif } } |