From 74cdd9ffa1d0e5f74942051e7e22e07542929c03 Mon Sep 17 00:00:00 2001 From: Jochen Dolze Date: Tue, 30 Mar 2010 18:49:58 +0200 Subject: Changed directory structure, added Makefiles --- vdr2pkt.cpp | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 vdr2pkt.cpp (limited to 'vdr2pkt.cpp') diff --git a/vdr2pkt.cpp b/vdr2pkt.cpp deleted file mode 100644 index 8d5a18f..0000000 --- a/vdr2pkt.cpp +++ /dev/null @@ -1,30 +0,0 @@ -/* - * vdr2pkt.cpp: A program for the Video Disk Recorder - * - * See the README file for copyright information and how to reach the author. - * - */ - -#include "vdr2pkt.h" - -cMarkAdVDR2Pkt::cMarkAdVDR2Pkt(const char *QueueName, int QueueSize) -{ - queue = new cMarkAdPaketQueue(QueueName,QueueSize); -} - -cMarkAdVDR2Pkt::~cMarkAdVDR2Pkt() -{ - if (queue) delete queue; -} - -void cMarkAdVDR2Pkt::Process(MarkAdPid Pid, uchar *VDRData, int VDRSize, uchar **PktData, int *PktSize) -{ - if ((!PktData) || (!PktSize) || (!queue)) return; - *PktData=NULL; - *PktSize=0; - if (!Pid.Type) return; - - if (VDRData) queue->Put(VDRData,VDRSize); - *PktData=queue->GetPacket(PktSize,MA_PACKET_PKT); - return; -} -- cgit v1.2.3