summaryrefslogtreecommitdiff
path: root/event.h
diff options
context:
space:
mode:
authorMidas <vdrportal_midas@gmx.de>2012-04-03 19:39:46 +0200
committerMidas <vdrportal_midas@gmx.de>2012-04-03 19:39:46 +0200
commite78b814fe5f52e4bbcd63842adefe0e44016ec43 (patch)
treef8df9ed569bee47c3b68f29a570e22f452642c43 /event.h
parente64b78a1f6313623035fb8e2a7de1fc8fea24d75 (diff)
downloadvdr-plugin-block-e78b814fe5f52e4bbcd63842adefe0e44016ec43.tar.gz
vdr-plugin-block-e78b814fe5f52e4bbcd63842adefe0e44016ec43.tar.bz2
Bugfixes: Applied patch by Joe_D. Closes #928 @ vdr-developer.org
Features: Plugin now may take care of age rating information derived from the stream.
Diffstat (limited to 'event.h')
-rw-r--r--event.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/event.h b/event.h
index 280ef64..a9af5fa 100644
--- a/event.h
+++ b/event.h
@@ -55,9 +55,11 @@ public:
virtual int Compare(const cListObject &src) const
{
cEventBlock* rhs=(cEventBlock*)&src;
- char* l=cEventBlock::duptolower(mPattern);
- char* r=cEventBlock::duptolower(rhs->mPattern);
- return strcmp(l,r); }//TODO check if the code relies on this because in fact we have to return !strcmp(r,l) here!!!
+ char* l=duptolower(mPattern);
+ char* r=duptolower(rhs->mPattern);
+ int ret=strcmp(l,r);
+ free(l); free(r);
+ return ret; }//TODO check if the code relies on this because in fact we have to return !strcmp(r,l) here!!!
};
class cEventsBlock : public cConfig<cEventBlock> {