mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 16:01:10 +02:00
eitd: as long as neutrino using only first content classification,
reduce content classification caching (leaving old code with ifdef)
Origin commit data
------------------
Branch: ni/coolstream
Commit: e8700de2b7
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2015-01-30 (Fri, 30 Jan 2015)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -439,10 +439,15 @@ void *insertEventsfromFile(void * data)
|
||||
}
|
||||
|
||||
if (!contentClassification.empty()) {
|
||||
#ifdef FULL_CONTENT_CLASSIFICATION
|
||||
ssize_t off = e.classifications.reserve(2 * contentClassification.size());
|
||||
if (off > -1)
|
||||
for (unsigned i = 0; i < contentClassification.size(); i++)
|
||||
off = e.classifications.set(off, contentClassification.at(i), userClassification.at(i));
|
||||
#else
|
||||
e.classifications.content = contentClassification.at(0);
|
||||
e.classifications.user = userClassification.at(0);
|
||||
#endif
|
||||
}
|
||||
addEvent(e, 0);
|
||||
ev_count++;
|
||||
|
Reference in New Issue
Block a user