summaryrefslogtreecommitdiff
path: root/ttxtsubsreceiver.c
diff options
context:
space:
mode:
authorTobias Grimm <git@e-tobi.net>2010-02-03 20:49:24 +0100
committerTobias Grimm <git@e-tobi.net>2010-02-04 23:25:49 +0100
commit3fe4cb0b34fbdd810777b14800f937eaf4cebc09 (patch)
treec4ded34886439315964a6249ddccacc64d0b31de /ttxtsubsreceiver.c
parent1fc8dd6fd7b29a49d64eabc05e10b9926ee7a5f6 (diff)
downloadvdr-plugin-ttxtsubs-3fe4cb0b34fbdd810777b14800f937eaf4cebc09.tar.gz
vdr-plugin-ttxtsubs-3fe4cb0b34fbdd810777b14800f937eaf4cebc09.tar.bz2
Update for VDR 1.7.12 (Closes #236)
Plugin code and VDR patch updated for 1.7.12 - Thx to Rolf Ahrenberg
Diffstat (limited to 'ttxtsubsreceiver.c')
-rw-r--r--ttxtsubsreceiver.c6
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