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 /epgsearch.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 'epgsearch.h')
-rw-r--r-- | epgsearch.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/epgsearch.h b/epgsearch.h index 67a9b99..f6fbd2f 100644 --- a/epgsearch.h +++ b/epgsearch.h @@ -341,7 +341,11 @@ public: int TimerMode() const { return m_timerMode; } bool operator<( SearchResult const& other ) const { return m_starttime < other.m_starttime; } const cEvent* GetEvent(); +#if VDRVERSNUM >= 20301 + const cChannel* GetChannel() { LOCK_CHANNELS_READ; return Channels->GetByChannelID(m_channel); } +#else const cChannel* GetChannel() { return Channels.GetByChannelID(m_channel); } +#endif private: int m_searchId; |