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/channels_widget.ecpp | 9 +++++++++ pages/edit_timer.ecpp | 5 +++++ pages/epginfo.ecpp | 5 +++++ pages/ibox.ecpp | 23 +++++++++++++++++++++++ pages/multischedule.ecpp | 28 ++++++++++++++++++++++++++++ pages/recordings.ecpp | 5 +++++ pages/remote.ecpp | 16 ++++++++++++++++ pages/schedule.ecpp | 29 +++++++++++++++++++++++++++++ pages/searchresults.ecpp | 7 +++++++ pages/timerconflicts.ecpp | 12 ++++++++++++ pages/timers.ecpp | 7 +++++++ pages/vlc.ecpp | 5 +++++ pages/whats_on.ecpp | 13 +++++++++++++ 13 files changed, 164 insertions(+) (limited to 'pages') diff --git a/pages/channels_widget.ecpp b/pages/channels_widget.ecpp index fed7483..d4c06b4 100644 --- a/pages/channels_widget.ecpp +++ b/pages/channels_widget.ecpp @@ -20,12 +20,21 @@ bool logged_in(false); if (!logged_in && LiveSetup().UseAuth()) return reply.redirect("login.html"); }> <%cpp> +#if VDRVERSNUM >= 20301 + LOCK_CHANNELS_READ; + if (false) +#else ReadLock channelsLock( Channels ); if ( !channelsLock ) +#endif throw HtmlError( tr("Couldn't aquire access to channels, please try again later.") );