Revert "eitd/xmlutil.cpp: fix crash, if epg data saved with older image -"

This reverts commit 1f65f1bc80.

already have a more general solution
This commit is contained in:
Stefan Seyfried
2012-11-22 22:38:39 +01:00
parent b48209241c
commit 57113fdfbc

View File

@@ -334,18 +334,16 @@ void *insertEventsfromFile(void * data)
std::string(xmlGetAttribute(node, "string")));
node = node->xmlNextNode;
}
while (xmlGetNextOccurence(node, "item") != NULL) {
#ifdef USE_ITEM_DESCRIPTION
while (xmlGetNextOccurence(node, "item") != NULL) {
e.item = std::string(xmlGetAttribute(node, "string"));
#endif
node = node->xmlNextNode;
}
while (xmlGetNextOccurence(node, "item_description") != NULL) {
#ifdef USE_ITEM_DESCRIPTION
e.itemDescription = std::string(xmlGetAttribute(node, "string"));
#endif
node = node->xmlNextNode;
}
#endif
while (xmlGetNextOccurence(node, "extended_text") != NULL) {
e.appendExtendedText( std::string(ZapitTools::UTF8_to_Latin1(xmlGetAttribute(node, "lang"))),
std::string(xmlGetAttribute(node, "string")));