From 8f9136ecab28d915d3e57f35badf4b74bb2bfce8 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Mon, 19 Nov 2012 10:32:31 +0100 Subject: In order to be able to play TS recordings from other sources, in which there is more than one PMT PID in the PAT, 'int cPatPmtParser::PatPmt(void)' has been changed to 'bool cPatPmtParser::IsPatPmt(int Pid)' --- cutter.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cutter.c') diff --git a/cutter.c b/cutter.c index ace1893b..42b966aa 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.16 2012/11/18 12:09:00 kls Exp $ + * $Id: cutter.c 2.17 2012/11/19 10:21:44 kls Exp $ */ #include "cutter.h" @@ -132,7 +132,7 @@ bool cDanglingPacketStripper::Process(uchar *Data, int Length, int64_t FirstPts) int Pid = TsPid(Data); if (Pid == PATPID) patPmtParser.ParsePat(Data, TS_SIZE); - else if (Pid == patPmtParser.PmtPid()) + else if (patPmtParser.IsPmtPid(Pid)) patPmtParser.ParsePmt(Data, TS_SIZE); else { int64_t Pts = TsGetPts(Data, TS_SIZE); @@ -408,7 +408,7 @@ void cCuttingThread::GetPendingPackets(uchar *Data, int &Length, int Index, int6 int Pid = TsPid(p); if (Pid == PATPID) PatPmtParser.ParsePat(p, TS_SIZE); - else if (Pid == PatPmtParser.PmtPid()) + else if (PatPmtParser.IsPmtPid(Pid)) PatPmtParser.ParsePmt(p, TS_SIZE); else if (!Processed[Pid]) { int64_t Pts = TsGetPts(p, TS_SIZE); -- cgit v1.2.3