From e9ebb6aa9f43d17cb8d878f7f7e78b87aeb7ad9c Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Mon, 27 Feb 2012 16:36:26 +0400 Subject: [PATCH] eitd/SIevents.cpp: fix userClassification, dont save undefined content Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/e25f111928572ca6c88133f0d2fb5f51ee619906 Author: [CST] Focus Date: 2012-02-27 (Mon, 27 Feb 2012) --- src/eitd/SIevents.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/eitd/SIevents.cpp b/src/eitd/SIevents.cpp index 87b3f4870..cff53a81e 100644 --- a/src/eitd/SIevents.cpp +++ b/src/eitd/SIevents.cpp @@ -105,7 +105,7 @@ void SIevent::parse(Event &event) char content = c->getContentNibbleLevel1() << 4 | c->getContentNibbleLevel2(); contentClassification += content; char user = c->getUserNibble1() << 4 | c->getUserNibble2(); - contentClassification += user; + userClassification += user; } } else if(dtype == COMPONENT_DESCRIPTOR) { @@ -313,8 +313,11 @@ int SIevent::saveXML2(FILE *file) const } } for_each(times.begin(), times.end(), saveSItimeXML(file)); - for(unsigned i=0; i\n", contentClassification[i], userClassification[i]); + for(unsigned i=0; i\n", contentClassification[i], userClassification[i]); + } for_each(components.begin(), components.end(), saveSIcomponentXML(file)); for_each(ratings.begin(), ratings.end(), saveSIparentalRatingXML(file)); for_each(linkage_descs.begin(), linkage_descs.end(), saveSIlinkageXML(file));