eitd/SIevents.cpp: add missed elses in event parse code

Origin commit data
------------------
Branch: ni/coolstream
Commit: 231b52d310
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2012-02-08 (Wed, 08 Feb 2012)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
[CST] Focus
2012-02-08 18:45:44 +04:00
parent 175a36e5f5
commit c3bc71d2f4

View File

@@ -117,7 +117,7 @@ void SIevent::parse(Event &event)
setName(lang, stringDVBUTF8(d->getEventName(), table, tsidonid)); setName(lang, stringDVBUTF8(d->getEventName(), table, tsidonid));
setText(lang, stringDVBUTF8(d->getText(), table, tsidonid)); setText(lang, stringDVBUTF8(d->getText(), table, tsidonid));
} }
if(dtype == EXTENDED_EVENT_DESCRIPTOR) { else if(dtype == EXTENDED_EVENT_DESCRIPTOR) {
const ExtendedEventDescriptor *d = (ExtendedEventDescriptor*) *dit; const ExtendedEventDescriptor *d = (ExtendedEventDescriptor*) *dit;
std::string lang = d->getIso639LanguageCode(); std::string lang = d->getIso639LanguageCode();
std::transform(lang.begin(), lang.end(), lang.begin(), tolower); std::transform(lang.begin(), lang.end(), lang.begin(), tolower);
@@ -132,7 +132,7 @@ void SIevent::parse(Event &event)
} }
appendExtendedText(lang, stringDVBUTF8(d->getText(), table, tsidonid)); appendExtendedText(lang, stringDVBUTF8(d->getText(), table, tsidonid));
} }
if(dtype == CONTENT_DESCRIPTOR) { else if(dtype == CONTENT_DESCRIPTOR) {
const ContentDescriptor * d = (ContentDescriptor *) *dit; const ContentDescriptor * d = (ContentDescriptor *) *dit;
const ContentClassificationList *clist = d->getClassifications(); const ContentClassificationList *clist = d->getClassifications();
for (ContentClassificationConstIterator cit = clist->begin(); cit != clist->end(); ++cit) { for (ContentClassificationConstIterator cit = clist->begin(); cit != clist->end(); ++cit) {
@@ -143,7 +143,7 @@ void SIevent::parse(Event &event)
contentClassification += user; contentClassification += user;
} }
} }
if(dtype == COMPONENT_DESCRIPTOR) { else if(dtype == COMPONENT_DESCRIPTOR) {
const ComponentDescriptor *d = (ComponentDescriptor*)*dit; const ComponentDescriptor *d = (ComponentDescriptor*)*dit;
SIcomponent c; SIcomponent c;
c.streamContent = d->getStreamContent(); c.streamContent = d->getStreamContent();
@@ -155,7 +155,7 @@ void SIevent::parse(Event &event)
c.component = stringDVBUTF8(d->getText(), table, tsidonid); c.component = stringDVBUTF8(d->getText(), table, tsidonid);
components.insert(c); components.insert(c);
} }
if(dtype == PARENTAL_RATING_DESCRIPTOR) { else if(dtype == PARENTAL_RATING_DESCRIPTOR) {
const ParentalRatingDescriptor *d = (ParentalRatingDescriptor*) *dit; const ParentalRatingDescriptor *d = (ParentalRatingDescriptor*) *dit;
const ParentalRatingList *plist = d->getParentalRatings(); const ParentalRatingList *plist = d->getParentalRatings();
for (ParentalRatingConstIterator it = plist->begin(); it != plist->end(); ++it) { for (ParentalRatingConstIterator it = plist->begin(); it != plist->end(); ++it) {
@@ -163,7 +163,7 @@ void SIevent::parse(Event &event)
ratings.insert(p); ratings.insert(p);
} }
} }
if(dtype == LINKAGE_DESCRIPTOR) { else if(dtype == LINKAGE_DESCRIPTOR) {
const LinkageDescriptor * d = (LinkageDescriptor *) *dit; const LinkageDescriptor * d = (LinkageDescriptor *) *dit;
SIlinkage l; SIlinkage l;
l.linkageType = d->getLinkageType(); l.linkageType = d->getLinkageType();