correctly change duration if it changes

This commit is contained in:
Andreas Öman 2007-08-30 07:27:01 +00:00
parent dc608c0743
commit 3bb1102127

1
epg.c
View file

@ -366,6 +366,7 @@ epg_update_event_by_id(th_channel_t *ch, uint16_t event_id,
TAILQ_REMOVE(&ch->ch_epg_events, e, e_link);
e->e_duration = duration;
e->e_start = start;
TAILQ_INSERT_SORTED(&ch->ch_epg_events, e, e_link, startcmp);