diff options
author | Tobias Grimm <tobias@e-tobi.loc> | 2009-04-23 23:40:38 +0200 |
---|---|---|
committer | Tobias Grimm <tobias@e-tobi.loc> | 2009-06-20 18:17:42 +0200 |
commit | e125a3bbd31042b4d8d72171f19c1006bee06282 (patch) | |
tree | 4aac3fff10bf0b33e2d02792e379dc29b1af870f /receiver.c | |
parent | 4de3caa67369af756d2ef008ad26453c9c4065ad (diff) | |
download | vdr-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.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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"); } |