diff options
author | Jochen Dolze <vdr@dolze.de> | 2010-05-25 19:23:47 +0200 |
---|---|---|
committer | Jochen Dolze <vdr@dolze.de> | 2010-05-25 19:23:47 +0200 |
commit | 4c668726b7de321f0411064dcb286ed6ad05a307 (patch) | |
tree | 4c7556b13b9042e3b4f3478d1a0dbc56f4392193 /command/demux.cpp | |
parent | bfdd9d54165fc1d9897d71d8b9c94c32291e882c (diff) | |
download | vdr-plugin-markad-4c668726b7de321f0411064dcb286ed6ad05a307.tar.gz vdr-plugin-markad-4c668726b7de321f0411064dcb286ed6ad05a307.tar.bz2 |
Added Clear()-function to demuxer,paket classes
Added marks DelAll, DelTill functions
Diffstat (limited to 'command/demux.cpp')
-rw-r--r-- | command/demux.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/command/demux.cpp b/command/demux.cpp index 14d5546..76e6003 100644 --- a/command/demux.cpp +++ b/command/demux.cpp @@ -27,6 +27,15 @@ cMarkAdDemux::~cMarkAdDemux() if (queue) delete queue; } +void cMarkAdDemux::Clear() +{ + if (ts2pkt) ts2pkt->Clear(); + if (vdr2pkt) vdr2pkt->Clear(); + if (pes2audioes) pes2audioes->Clear(); + if (pes2videoes) pes2videoes->Clear(); + if (queue) queue->Clear(); +} + void cMarkAdDemux::ProcessVDR(MarkAdPid Pid, uchar *Data, int Count, uchar **Pkt, int *PktLen) { if ((!Pkt) || (!PktLen)) return; |