summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--eepg.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/eepg.c b/eepg.c
index 48519e7..2b6c702 100644
--- a/eepg.c
+++ b/eepg.c
@@ -2977,7 +2977,8 @@ cEIT2::cEIT2 (cSchedules * Schedules, int Source, u_char Tid, const u_char * Dat
}
// If the new event has a higher table ID, let's skip it.
// The lower the table ID, the more "current" the information.
- else if (Tid > pEvent->TableID ())
+ // if the Table ID is DEFAULT_TABLE_ID it is most probably EEPG event so we can overwrite
+ else if (Tid > pEvent->TableID() && pEvent->TableID () != DEFAULT_TABLE_ID)
continue;
// If the new event comes from the same table and has the same version number
// as the existing one, let's skip it to avoid unnecessary work.