summaryrefslogtreecommitdiff
path: root/pending_notifications.c
diff options
context:
space:
mode:
Diffstat (limited to 'pending_notifications.c')
-rw-r--r--pending_notifications.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/pending_notifications.c b/pending_notifications.c
index 4ce480f..8d3046d 100644
--- a/pending_notifications.c
+++ b/pending_notifications.c
@@ -121,7 +121,13 @@ const char *cPendingNotification::ToText(void) const
free(buffer);
buffer = NULL;
- cChannel *channel = Channels.GetByChannelID(channelID, true, true);
+#if VDRVERSNUM > 20300
+ LOCK_CHANNELS_READ;
+ const cChannels *vdrchannels = Channels;
+#else
+ cChannels *vdrchannels = &Channels;
+#endif
+ const cChannel *channel = vdrchannels->GetByChannelID(channelID, true, true);
if (!channel)
LogFile.Log(3,"invalid channel in pending notifications!");