diff options
author | Midas <vdrportal_midas@gmx.de> | 2012-04-03 19:39:46 +0200 |
---|---|---|
committer | Midas <vdrportal_midas@gmx.de> | 2012-04-03 19:39:46 +0200 |
commit | e78b814fe5f52e4bbcd63842adefe0e44016ec43 (patch) | |
tree | f8df9ed569bee47c3b68f29a570e22f452642c43 /event.h | |
parent | e64b78a1f6313623035fb8e2a7de1fc8fea24d75 (diff) | |
download | vdr-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.h | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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> { |