diff options
author | Rolf Ahrenberg <Rolf.Ahrenberg@sci.fi> | 2017-04-01 23:17:15 +0300 |
---|---|---|
committer | Rolf Ahrenberg <Rolf.Ahrenberg@sci.fi> | 2017-04-01 23:17:15 +0300 |
commit | eaa015874e3e494006d67260feaebe6377568ebb (patch) | |
tree | 9d407c10cbf0d541377a08e390ed603909abfddb /epg_events.h | |
parent | a8eb15416c38009efb9562c5d64ef87719ae017c (diff) | |
download | vdr-plugin-live-eaa015874e3e494006d67260feaebe6377568ebb.tar.gz vdr-plugin-live-eaa015874e3e494006d67260feaebe6377568ebb.tar.bz2 |
VDR-2.3.1 compatibility patch by Nachteule.
http://www.vdr-portal.de/board16-video-disk-recorder/board55-vdr-plugins/p1280013-vdr-live-vdr-2-3-1/#post1280013
Diffstat (limited to 'epg_events.h')
-rw-r--r-- | epg_events.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/epg_events.h b/epg_events.h index 3417f6a..3843bc1 100644 --- a/epg_events.h +++ b/epg_events.h @@ -170,7 +170,11 @@ namespace vdrlive virtual time_t GetEndTime() const { return m_event->EndTime(); } +#if VDRVERSNUM >= 20301 + virtual cChannel const * Channel() const { LOCK_CHANNELS_READ; return Channels->GetByChannelID(m_event->ChannelID());} +#else virtual cChannel const * Channel() const { return Channels.GetByChannelID(m_event->ChannelID());} +#endif private: cEvent const * m_event; @@ -198,7 +202,11 @@ namespace vdrlive virtual time_t GetEndTime() const { return 0; } +#if VDRVERSNUM >= 20301 + virtual cChannel const * Channel() const { LOCK_CHANNELS_READ; return Channels->GetByChannelID(m_channelID);} +#else virtual cChannel const * Channel() const { return Channels.GetByChannelID(m_channelID);} +#endif private: tChannelID m_channelID; |