diff options
author | Jochen Dolze <vdr@dolze.de> | 2011-10-24 17:41:40 +0200 |
---|---|---|
committer | Jochen Dolze <vdr@dolze.de> | 2011-10-24 17:41:40 +0200 |
commit | 2d394468c5da27193fb8feb9b8ff9aad756c6164 (patch) | |
tree | 2428b9c2a535ce2a72707db0a8a9e69f80751b9f /parse.cpp | |
parent | f4ac3426500a44fec50b95c4dd691fba38a269fa (diff) | |
download | vdr-plugin-xmltv2vdr-2d394468c5da27193fb8feb9b8ff9aad756c6164.tar.gz vdr-plugin-xmltv2vdr-2d394468c5da27193fb8feb9b8ff9aad756c6164.tar.bz2 |
Fixed two segfaults pointed to by ludi
Diffstat (limited to 'parse.cpp')
-rw-r--r-- | parse.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -929,6 +929,14 @@ bool cParse::FetchEvent(xmlNodePtr enode) { // http-link inside -> just ignore } + else if ((!xmlStrcasecmp(node->name, (const xmlChar *) "length"))) + { + // length without advertisements -> just ignore + } + else if ((!xmlStrcasecmp(node->name, (const xmlChar *) "episode-num"))) + { + // episode-num in not usable format -> just ignore + } else { source->Elog("unknown element %s, please report!",node->name); @@ -1135,7 +1143,7 @@ int cParse::Process(cEPGExecutor &myExecutor,char *buffer, int bufsize) } else { - if (!schedule->Index()) + if (!schedule->Events()->Count()) { if (lerr!=PARSE_EMPTYSCHEDULE) source->Elog("cannot merge into empty epg (%s) - try add option", |