summaryrefslogtreecommitdiff
path: root/parse.cpp
diff options
context:
space:
mode:
authorJochen Dolze <vdr@dolze.de>2011-10-24 17:41:40 +0200
committerJochen Dolze <vdr@dolze.de>2011-10-24 17:41:40 +0200
commit2d394468c5da27193fb8feb9b8ff9aad756c6164 (patch)
tree2428b9c2a535ce2a72707db0a8a9e69f80751b9f /parse.cpp
parentf4ac3426500a44fec50b95c4dd691fba38a269fa (diff)
downloadvdr-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.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/parse.cpp b/parse.cpp
index 58301fa..19812e8 100644
--- a/parse.cpp
+++ b/parse.cpp
@@ -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",