diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2005-01-16 14:40:47 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2005-01-16 14:40:47 +0100 |
commit | c522225344fdcbea2ec2946695d43a5dfa6c175a (patch) | |
tree | eac64a12b227614c86183257e3ea728e80986f0b /recorder.c | |
parent | 9423c636a25dcdc2531d51551aff33cf93abc095 (diff) | |
download | vdr-c522225344fdcbea2ec2946695d43a5dfa6c175a.tar.gz vdr-c522225344fdcbea2ec2946695d43a5dfa6c175a.tar.bz2 |
Recording and Transfer Mode now handle more than 2 audio PIDs
Diffstat (limited to 'recorder.c')
-rw-r--r-- | recorder.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: recorder.c 1.12 2005/01/09 12:16:36 kls Exp $ + * $Id: recorder.c 1.13 2005/01/16 12:53:17 kls Exp $ */ #include <stdarg.h> @@ -127,8 +127,8 @@ void cFileWriter::Action(void) active = false; } -cRecorder::cRecorder(const char *FileName, int Ca, int Priority, int VPid, int APid1, int APid2, int DPid1, int DPid2) -:cReceiver(Ca, Priority, Setup.UseDolbyDigital ? 5 : 3, VPid, APid1, APid2, DPid1, DPid2) +cRecorder::cRecorder(const char *FileName, int Ca, int Priority, int VPid, const int *APids, const int *DPids, const int *SPids) +:cReceiver(Ca, Priority, VPid, APids, Setup.UseDolbyDigital ? DPids : NULL, SPids) ,cThread("recording") { active = false; @@ -139,7 +139,7 @@ cRecorder::cRecorder(const char *FileName, int Ca, int Priority, int VPid, int A ringBuffer = new cRingBufferLinear(RECORDERBUFSIZE, TS_SIZE * 2, true, "Recorder"); ringBuffer->SetTimeouts(0, 100); - remux = new cRemux(VPid, APid1, APid2, DPid1, DPid2, true); + remux = new cRemux(VPid, APids, Setup.UseDolbyDigital ? DPids : NULL, SPids, true); writer = new cFileWriter(FileName, remux); } |