summaryrefslogtreecommitdiff
path: root/epg_events.cpp
diff options
context:
space:
mode:
authorRolf Ahrenberg <Rolf.Ahrenberg@sci.fi>2017-04-01 23:17:15 +0300
committerRolf Ahrenberg <Rolf.Ahrenberg@sci.fi>2017-04-01 23:17:15 +0300
commiteaa015874e3e494006d67260feaebe6377568ebb (patch)
tree9d407c10cbf0d541377a08e390ed603909abfddb /epg_events.cpp
parenta8eb15416c38009efb9562c5d64ef87719ae017c (diff)
downloadvdr-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.cpp')
-rw-r--r--epg_events.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/epg_events.cpp b/epg_events.cpp
index 9e35f79..10e02e7 100644
--- a/epg_events.cpp
+++ b/epg_events.cpp
@@ -285,7 +285,12 @@ namespace vdrlive
tChannelID channelId = tChannelID();
DecodeDomId(epgid, channelId, eventId);
+#if VDRVERSNUM >= 20301
+ LOCK_CHANNELS_READ;
+ cChannel const *channel = Channels->GetByChannelID(channelId);
+#else
cChannel const *channel = Channels.GetByChannelID(channelId);
+#endif
if (!channel) {
return CreateEpgInfo(epgid, errorInfo, tr("Wrong channel id"));
}