From a402f07f7c68c9d5498ac7dbc1591320a9d4c81b Mon Sep 17 00:00:00 2001 From: James Hutchinson Date: Mon, 31 Jan 2022 10:04:24 +0000 Subject: [PATCH] epg: ignore past events when matching on eid --- src/epg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/epg.c b/src/epg.c index 093cc1a63..3ce4e1e3b 100644 --- a/src/epg.c +++ b/src/epg.c @@ -1083,7 +1083,7 @@ epg_broadcast_t *epg_broadcast_find_by_eid ( channel_t *ch, uint16_t eid ) { epg_broadcast_t *e; RB_FOREACH(e, &ch->ch_epg_schedule, sched_link) { - if (e->dvb_eid == eid) return e; + if (e->dvb_eid == eid && e->stop > gclk()) return e; } return NULL; } -- 2.47.2