mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-15 17:33:37 +02:00
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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user