]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
epg: ignore past events when matching on eid
authorJames Hutchinson <jahutchinson99@googlemail.com>
Mon, 31 Jan 2022 10:04:24 +0000 (10:04 +0000)
committerFlole998 <Flole998@users.noreply.github.com>
Sat, 12 Feb 2022 18:30:40 +0000 (19:30 +0100)
src/epg.c

index 093cc1a633befeb45dbb55aa03d16177b0d36964..3ce4e1e3b0e762e80b2ead6d029f811253d842d9 100644 (file)
--- 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;
 }