From eaa015874e3e494006d67260feaebe6377568ebb Mon Sep 17 00:00:00 2001 From: Rolf Ahrenberg Date: Sat, 1 Apr 2017 23:17:15 +0300 Subject: 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 --- epgsearch.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'epgsearch.h') 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; -- cgit v1.2.3