sectionsd: don't even add duplicate events

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1473 e54a6e83-5905-42d5-8d5c-058d10e6a962


Origin commit data
------------------
Branch: ni/coolstream
Commit: c492fb671b
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2011-05-15 (Sun, 15 May 2011)



------------------
This commit was generated by Migit
This commit is contained in:
Stefan Seyfried
2011-05-15 10:54:58 +00:00
parent d5a13b8159
commit 4a72625339

View File

@@ -934,11 +934,17 @@ if (slow_addevent)
/* do we need this check? */
if (x_key == e_key)
continue;
if ((*x)->table_id < e->table_id)
continue;
if ((*x)->times.begin()->startzeit != start_time)
continue;
if ((*x)->table_id < e->table_id)
{
/* if we already have an event with the same start time but a lower
* table ID, there is no need to add this one - it would be removed
* by removeDupEvents() anyway => just return here. */
//dprintf("%s: not added: time==,id!=, table_id %02x<%02x, 0x%016llx 0x%016llx %s\n", __func__, (*x)->table_id, e->table_id, x_key, e_key, (*x)->getName().c_str());
unlockEvents();
return;
}
dprintf("%s: delete 0x%016llx.%02x time = 0x%016llx.%02x\n", __func__,
x_key, (*x)->table_id, e_key, e->table_id);
to_delete.push_back(x_key);