summaryrefslogtreecommitdiff
path: root/transfer.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2010-01-30 11:10:25 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2010-01-30 11:10:25 +0100
commit08899602322175a6cb080951c2ad0dcbf71446fa (patch)
tree4d8d72ed157813e1a1b159ed5c57f8d875a926b1 /transfer.c
parenta9543347afe9ea7fd031a36e97ef56ba036c1515 (diff)
downloadvdr-08899602322175a6cb080951c2ad0dcbf71446fa.tar.gz
vdr-08899602322175a6cb080951c2ad0dcbf71446fa.tar.bz2
The PCR pid is now recorded for channels where this is different from the video PID
Diffstat (limited to 'transfer.c')
-rw-r--r--transfer.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/transfer.c b/transfer.c
index 02ef042c..096fda34 100644
--- a/transfer.c
+++ b/transfer.c
@@ -4,17 +4,17 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: transfer.c 2.4 2009/12/06 14:22:23 kls Exp $
+ * $Id: transfer.c 2.5 2010/01/30 11:10:25 kls Exp $
*/
#include "transfer.h"
// --- cTransfer -------------------------------------------------------------
-cTransfer::cTransfer(tChannelID ChannelID, int VPid, const int *APids, const int *DPids, const int *SPids)
-:cReceiver(ChannelID, -1, VPid, APids, Setup.UseDolbyDigital ? DPids : NULL, SPids)
+cTransfer::cTransfer(const cChannel *Channel)
+:cReceiver(Channel)
{
- patPmtGenerator.SetChannel(Channels.GetByChannelID(ChannelID));
+ patPmtGenerator.SetChannel(Channel);
}
cTransfer::~cTransfer()
@@ -55,8 +55,8 @@ void cTransfer::Receive(uchar *Data, int Length)
cDevice *cTransferControl::receiverDevice = NULL;
-cTransferControl::cTransferControl(cDevice *ReceiverDevice, tChannelID ChannelID, int VPid, const int *APids, const int *DPids, const int *SPids)
-:cControl(transfer = new cTransfer(ChannelID, VPid, APids, DPids, SPids), true)
+cTransferControl::cTransferControl(cDevice *ReceiverDevice, const cChannel *Channel)
+:cControl(transfer = new cTransfer(Channel), true)
{
ReceiverDevice->AttachReceiver(transfer);
receiverDevice = ReceiverDevice;