summaryrefslogtreecommitdiff
path: root/cutter.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2012-11-25 14:02:47 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2012-11-25 14:02:47 +0100
commit21186ced9724572d95b62e8643677e3ba23fe627 (patch)
treeeecda11218d9b8d0c8f8fedee58c44e9a7ab9308 /cutter.c
parentc13980e1307d97ccc912f1d6888fcc0c4e928b1a (diff)
downloadvdr-21186ced9724572d95b62e8643677e3ba23fe627.tar.gz
vdr-21186ced9724572d95b62e8643677e3ba23fe627.tar.bz2
Fixed getting only non-video packets in cCuttingThread::GetPendingPackets()
Diffstat (limited to 'cutter.c')
-rw-r--r--cutter.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/cutter.c b/cutter.c
index 42b966aa..e6de47ea 100644
--- a/cutter.c
+++ b/cutter.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: cutter.c 2.17 2012/11/19 10:21:44 kls Exp $
+ * $Id: cutter.c 2.18 2012/11/25 13:59:07 kls Exp $
*/
#include "cutter.h"
@@ -408,8 +408,10 @@ void cCuttingThread::GetPendingPackets(uchar *Data, int &Length, int Index, int6
int Pid = TsPid(p);
if (Pid == PATPID)
PatPmtParser.ParsePat(p, TS_SIZE);
- else if (PatPmtParser.IsPmtPid(Pid))
+ else if (PatPmtParser.IsPmtPid(Pid)) {
PatPmtParser.ParsePmt(p, TS_SIZE);
+ Processed[PatPmtParser.Vpid()] = true; // we only want non-video packets
+ }
else if (!Processed[Pid]) {
int64_t Pts = TsGetPts(p, TS_SIZE);
if (Pts >= 0) {