diff options
author | Udo Richter <udo_richter@gmx.de> | 2012-04-03 20:34:53 +0200 |
---|---|---|
committer | etobi <git@e-tobi.net> | 2012-04-03 20:38:51 +0200 |
commit | b38af9121cc2c288473ba4239585cefb5f9b0f93 (patch) | |
tree | bf9e15073c1c985a861cd088c41c3f4a6e886124 | |
parent | c9644bfd0541ba5835cac32eb2915dddaa5aea10 (diff) | |
download | vdr-plugin-osdteletext-b38af9121cc2c288473ba4239585cefb5f9b0f93.tar.gz vdr-plugin-osdteletext-b38af9121cc2c288473ba4239585cefb5f9b0f93.tar.bz2 |
Adding VDR 1.7.27 compatibility
(Closes #918, Credit goes to nox and gda from vdrportal.de)
-rw-r--r-- | HISTORY | 4 | ||||
-rw-r--r-- | osdteletext.c | 2 | ||||
-rw-r--r-- | txtrecv.c | 14 | ||||
-rw-r--r-- | txtrecv.h | 2 |
4 files changed, 17 insertions, 5 deletions
@@ -1,6 +1,10 @@ VDR Plugin 'osdteletext' Revision History ----------------------------------------- +2012-04-03: version 0.9.3 + - VDR 1.7.27 compatibility (Closes #919), Credit goes to nox and gda fro + vdrportal.de + 2012-03-25: version 0.9.2 - Some code refactorings (Thx to Ville Skyttä) - FF card transfer mode on channel switch with VDR >= 1.7.25 (Closes: #9) diff --git a/osdteletext.c b/osdteletext.c index 7845c39..c6cd090 100644 --- a/osdteletext.c +++ b/osdteletext.c @@ -25,7 +25,7 @@ using namespace std; #error "VDR-1.6.0 API version or greater is required!" #endif -static const char *VERSION = "0.9.2"; +static const char *VERSION = "0.9.3"; static const char *DESCRIPTION = trNOOP("Displays teletext on the OSD"); static const char *MAINMENUENTRY = trNOOP("Teletext"); @@ -518,7 +518,7 @@ void cTxtStatus::ChannelSwitch(const cDevice *Device, int ChannelNumber int TPid = newLiveChannel->Tpid(); if (TPid) { - receiver = new cTxtReceiver(TPid, newLiveChannel->GetChannelID(), storeTopText, storage); + receiver = new cTxtReceiver(newLiveChannel, storeTopText, storage); cDevice::ActualDevice()->AttachReceiver(receiver); } @@ -526,10 +526,18 @@ 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"), +cTxtReceiver::cTxtReceiver(const cChannel* chan, bool storeTopText, Storage* storage) +#if APIVERSNUM >= 10712 + : cReceiver(chan, -1), cThread("osdteletext-receiver"), +#else + : cReceiver(chan, -1, chan->Tpid()), cThread("osdteletext-receiver"), +#endif TxtPage(0), storeTopText(storeTopText), buffer((188+60)*75), storage(storage) { +#if APIVERSNUM >= 10712 + SetPids(NULL); + AddPid(chan->Tpid()); +#endif storage->prepareDirectory(ChannelID()); // 10 ms timeout on getting TS frames @@ -165,7 +165,7 @@ protected: virtual void Receive(uchar *Data, int Length); virtual void Action(); public: - cTxtReceiver(int TPid, tChannelID chan, bool storeTopText, Storage* storage); + cTxtReceiver(const cChannel* chan, bool storeTopText, Storage* storage); virtual ~cTxtReceiver(); virtual void Stop(); }; |