diff options
author | etobi <git@e-tobi.net> | 2009-10-26 02:42:14 +0100 |
---|---|---|
committer | etobi <git@e-tobi.net> | 2009-10-26 03:23:09 +0100 |
commit | b7e63f01cd2b98d6f588a75ea7c85a080488dd85 (patch) | |
tree | a7ab952c2cd5a58eedc4930f39689d4610057c63 | |
parent | 4ac6a914a38ff32e8cbbdb88a0d2da27220cb040 (diff) | |
download | vdr-plugin-osdteletext-b7e63f01cd2b98d6f588a75ea7c85a080488dd85.tar.gz vdr-plugin-osdteletext-b7e63f01cd2b98d6f588a75ea7c85a080488dd85.tar.bz2 |
Fixed some stupid mistakes (References #177)
-rw-r--r-- | txtrecv.c | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -479,7 +479,7 @@ void cTelePage::save() bool cTelePage::IsTopTextPage() { - return (page.page & 0xFF) <= 0x99 && (page.page & 0x0F) <= 0x9; + return (page.page & 0xFF) > 0x99 || (page.page & 0x0F) > 0x9; } cTxtStatus::cTxtStatus(bool storeTopText, Storage* storage) @@ -533,7 +533,7 @@ void cTxtStatus::ChannelSwitch(const cDevice *Device, int ChannelNumber) cTxtReceiver::cTxtReceiver(int TPid, tChannelID chan, bool storeTopText, Storage* storage) : cReceiver(chan, -1, TPid), cThread("osdteletext-receiver"), - TxtPage(0), storeTopText(storeTopText), buffer((188+60)*75) + TxtPage(0), storeTopText(storeTopText), buffer((188+60)*75), storage(storage) { storage->prepareDirectory(ChannelID()); @@ -548,9 +548,6 @@ cTxtReceiver::~cTxtReceiver() Activate(false); buffer.Clear(); delete TxtPage; - if(storage) { - delete storage; - } } void cTxtReceiver::Stop() |