summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
Diffstat (limited to 'config.c')
-rw-r--r--config.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/config.c b/config.c
index 4110bd3..4807e32 100644
--- a/config.c
+++ b/config.c
@@ -18,7 +18,12 @@ void cTVScraperConfig::AddChannel(string channelID) {
}
bool cTVScraperConfig::ChannelActive(int channelNum) {
+#if APIVERSNUM < 20301
cChannel *channel = Channels.GetByNumber(channelNum);
+#else
+ LOCK_CHANNELS_READ;
+ const cChannel *channel = Channels->GetByNumber(channelNum);
+#endif
if (channel) {
string channelID = "";
channelID = *(channel->GetChannelID().ToString());