diff options
Diffstat (limited to 'ttxtsubsreceiver.c')
-rw-r--r-- | ttxtsubsreceiver.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ttxtsubsreceiver.c b/ttxtsubsreceiver.c index f1c7ad5..f7e20d3 100644 --- a/ttxtsubsreceiver.c +++ b/ttxtsubsreceiver.c @@ -38,7 +38,9 @@ struct ringBufItem { cTtxtSubsReceiver::cTtxtSubsReceiver(tChannelID ChnId, int Ca, struct ttxtpidinfo *PI) : +#if defined(APIVERSNUM) && APIVERSNUM < 10712 cReceiver(ChnId, -1, PI->pid), +#endif mGetMutex(), mGetCond(), mRingBuf(sizeof(ringBufItem) * 500, true), @@ -50,6 +52,10 @@ cTtxtSubsReceiver::cTtxtSubsReceiver(tChannelID ChnId, int Ca, struct ttxtpidinf int count = 0; uint16_t *pages = (uint16_t *) malloc(sizeof(uint16_t) * mPI.pagecount); +#if defined(APIVERSNUM) && APIVERSNUM >= 10712 + AddPid(PI->pid); +#endif + mPTS.valid = 0; // find a free page to put the index page on |