summaryrefslogtreecommitdiff
path: root/receiver.c
diff options
context:
space:
mode:
authorTobias Grimm <tobias@e-tobi.loc>2009-04-23 23:40:38 +0200
committerTobias Grimm <tobias@e-tobi.loc>2009-06-20 18:17:42 +0200
commite125a3bbd31042b4d8d72171f19c1006bee06282 (patch)
tree4aac3fff10bf0b33e2d02792e379dc29b1af870f /receiver.c
parent4de3caa67369af756d2ef008ad26453c9c4065ad (diff)
downloadvdr-patches-e125a3bbd31042b4d8d72171f19c1006bee06282.tar.gz
vdr-patches-e125a3bbd31042b4d8d72171f19c1006bee06282.tar.bz2
ttxtsubs: Record teletext (subtitels) PID
(provided by Rolf Ahrenberg)
Diffstat (limited to 'receiver.c')
-rw-r--r--receiver.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/receiver.c b/receiver.c
index f4c0a78..c19bd84 100644
--- a/receiver.c
+++ b/receiver.c
@@ -12,7 +12,7 @@
#include <stdio.h>
#include "tools.h"
-cReceiver::cReceiver(tChannelID ChannelID, int Priority, int Pid, const int *Pids1, const int *Pids2, const int *Pids3)
+cReceiver::cReceiver(tChannelID ChannelID, int Priority, int Pid, const int *Pids1, const int *Pids2, const int *Pids3, const int *Pids4)
{
device = NULL;
channelID = ChannelID;
@@ -32,6 +32,10 @@ cReceiver::cReceiver(tChannelID ChannelID, int Priority, int Pid, const int *Pid
while (*Pids3 && numPids < MAXRECEIVEPIDS)
pids[numPids++] = *Pids3++;
}
+ if (Pids4) {
+ while (*Pids4 && numPids < MAXRECEIVEPIDS)
+ pids[numPids++] = *Pids4++;
+ }
if (numPids >= MAXRECEIVEPIDS)
dsyslog("too many PIDs in cReceiver");
}