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 --- pages/vlc.ecpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'pages/vlc.ecpp') diff --git a/pages/vlc.ecpp b/pages/vlc.ecpp index 480e949..881958c 100644 --- a/pages/vlc.ecpp +++ b/pages/vlc.ecpp @@ -34,12 +34,17 @@ using namespace vdrlive; Channel = 0; if (recid.empty()) { pageTitle = tr("VLC: live video stream"); +#if VDRVERSNUM >= 20301 + LOCK_CHANNELS_READ; + Channel = (cChannel *)Channels->GetByChannelID(channel); +#else ReadLock channelsLock(Channels); if (!channelsLock) { throw HtmlError(tr("Couldn't aquire access to channels, please try again later.")); } Channel = Channels.GetByChannelID(channel); +#endif if (Channel == 0) { throw HtmlError( tr("Couldn't find channel or no channels available. Maybe you mistyped your request?") ); } -- cgit v1.2.3