summaryrefslogtreecommitdiff
path: root/recv.cpp
diff options
context:
space:
mode:
authorJochen Dolze <vdr@dolze.de>2009-09-26 11:49:41 +0200
committerJochen Dolze <vdr@dolze.de>2009-09-26 11:49:41 +0200
commitda52aedb6aa039cd3488b13e63a4648b73e465bf (patch)
tree12d4ba30a1a23a3028fdfc77f66836b90065fbb4 /recv.cpp
parent404b1e87e9d1f8854cbbd5a438ec4791b6ed296b (diff)
downloadvdr-plugin-markad-da52aedb6aa039cd3488b13e63a4648b73e465bf.tar.gz
vdr-plugin-markad-da52aedb6aa039cd3488b13e63a4648b73e465bf.tar.bz2
Ignore duplicate pakets
Diffstat (limited to 'recv.cpp')
-rw-r--r--recv.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/recv.cpp b/recv.cpp
index f105aa4..78d3840 100644
--- a/recv.cpp
+++ b/recv.cpp
@@ -13,7 +13,7 @@ cMarkAdReceiver::cMarkAdReceiver(int RecvNumber, const char *Filename, cTimer *T
cReceiver(Timer->Channel()->GetChannelID(), -1,
Timer->Channel()->Vpid(),Timer->Channel()->Apids(),
Timer->Channel()->Dpids()),cThread("markad"),
- buffer(MEGABYTE(3)), running(false) // 3MB Buffer
+ buffer(MEGATS(3)), running(false) // 3MB Buffer
{
if ((!Filename) || (!Timer)) return;
@@ -249,6 +249,14 @@ void cMarkAdReceiver::Action()
uchar *tspkt = frame->Data();
int tslen = frame->Count();
+#if 0
+int w=open("/tmp/test.ts",O_CREAT|O_RDWR|O_APPEND,0644);
+if (w!=-1) {
+write(w,tspkt,tslen);
+close(w);
+}
+#endif
+
while (tslen>0)
{
int len=video_demux->Process(macontext.General.VPid,tspkt,tslen,&pkt,&pktlen);