Project

General

Profile

Feature #177 ยป osdteletext-0.8.3-2nd-remove-double-channelid.diff

anbr, 10/25/2009 04:51 PM

View differences:

osdteletext-git2/txtrecv.c 2009-10-25 15:12:43.000000000 +0100
cTxtReceiver::cTxtReceiver(int TPid, tChannelID chan)
: cReceiver(chan, -1, TPid), cThread("osdteletext-receiver"),
chan(chan), TxtPage(0), buffer((188+60)*75), running(false)
TxtPage(0), buffer((188+60)*75), running(false)
{
Storage::instance()->prepareDirectory(chan);
Storage::instance()->prepareDirectory(ChannelID());
// 10 ms timeout on getting TS frames
buffer.SetTimeouts(0, 10);
}
......
pgno = mag8 * 256 + b1;
subno = (b2 + b3 * 256) & 0x3f7f; // Sub Page Number
TxtPage = new cTelePage(PageID(chan, pgno, subno), flags, lang, mag);
TxtPage = new cTelePage(PageID(ChannelID(), pgno, subno), flags, lang, mag);
TxtPage->SetLine((int)line,(uchar *)ptr);
break;
}
osdteletext-git2/txtrecv.h 2009-10-25 15:11:55.000000000 +0100
private:
void DecodeTXT(uchar*);
uchar unham16 (uchar*);
tChannelID chan;
cTelePage *TxtPage;
protected:
virtual void Activate(bool On);
    (1-1/1)