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 /pages/vlc.ecpp | |
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 'pages/vlc.ecpp')
-rw-r--r-- | pages/vlc.ecpp | 5 |
1 files changed, 5 insertions, 0 deletions
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?") ); } |