sectionsd: add workaround for holes in SRF EPG

Origin commit data
------------------
Branch: ni/coolstream
Commit: 1c313b43ad
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2013-02-05 (Tue, 05 Feb 2013)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Stefan Seyfried
2013-02-05 22:43:26 +01:00
parent baee6a8a1e
commit 141256f053

View File

@@ -450,6 +450,13 @@ xprintf("addEvent: current %016" PRIx64 " event %016" PRIx64 " running %d messag
unlockEvents();
return;
}
/* SRF special case: advertising is inserted with start time of
* an existing event. Duration may differ. To avoid holes in EPG caused
* by the (not useful) advertising event, don't delete the (useful)
* original event */
if ((*x)->table_id == e->table_id && (e->table_id & 0xFE) == 0x4e &&
(*x)->times.begin()->startzeit == start_time)
continue;
/* here we have an overlapping event */
dprintf("%s: delete 0x%016" PRIx64 ".%02x time = 0x%016" PRIx64 ".%02x\n", __func__,
x_key, (*x)->table_id, e_key, e->table_id);