diff options
Diffstat (limited to 'menu_timersdone.c')
-rw-r--r-- | menu_timersdone.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/menu_timersdone.c b/menu_timersdone.c index a239892..6eb370d 100644 --- a/menu_timersdone.c +++ b/menu_timersdone.c @@ -44,7 +44,13 @@ void cMenuTimerDoneItem::Set(void) tm *tm = localtime_r(&timerDone->start, &tm_r); strftime(buf, sizeof(buf), "%d.%m.%y %H:%M", tm); - const cChannel* ch = Channels.GetByChannelID(timerDone->channelID, true, true); +#if VDRVERSNUM > 20300 + LOCK_CHANNELS_READ; + const cChannels *vdrchannels = Channels; +#else + cChannels *vdrchannels = &Channels; +#endif + const cChannel* ch = vdrchannels->GetByChannelID(timerDone->channelID, true, true); msprintf(&buffer, "%d\t%s\t%s~%s", ch?ch->Number():0, buf, timerDone->title.c_str(), timerDone->shorttext.c_str()); SetText(buffer, false); } |