summaryrefslogtreecommitdiff
path: root/transfer.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2002-06-23 12:59:58 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2002-06-23 12:59:58 +0200
commit26981fd7b148ee943d8032b46f83a7409e02e3be (patch)
tree08393b0336d2a39d891859b4663d0f9996470b16 /transfer.c
parentbd26fdf362d7daf420090b4f811bdb1fad45ea24 (diff)
downloadvdr-26981fd7b148ee943d8032b46f83a7409e02e3be.tar.gz
vdr-26981fd7b148ee943d8032b46f83a7409e02e3be.tar.bz2
Switched handling 'Transfer Mode' to the new cPlayer/cControl structures
Diffstat (limited to 'transfer.c')
-rw-r--r--transfer.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/transfer.c b/transfer.c
index 0e0a7083..3b0b6360 100644
--- a/transfer.c
+++ b/transfer.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: transfer.c 1.1 2002/06/22 13:39:23 kls Exp $
+ * $Id: transfer.c 1.2 2002/06/23 12:56:49 kls Exp $
*/
#include "transfer.h"
@@ -120,3 +120,16 @@ void cTransfer::SetAudioPid(int APid)
remux.SetAudioPid(APid);
XXX*/
}
+
+// --- cTransferControl ------------------------------------------------------
+
+cTransferControl::cTransferControl(cDevice *ReceiverDevice, int VPid, int APid1, int APid2, int DPid1, int DPid2)
+:cControl(transfer = new cTransfer(VPid, APid1, APid2, DPid1, DPid2), true)
+{
+ ReceiverDevice->AttachReceiver(transfer);
+}
+
+cTransferControl::~cTransferControl()
+{
+ delete transfer;
+}