summaryrefslogtreecommitdiff
path: root/cutter.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2012-11-19 10:32:31 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2012-11-19 10:32:31 +0100
commit8f9136ecab28d915d3e57f35badf4b74bb2bfce8 (patch)
tree9fc527d18b580cb3bb22b4decfed2690991229a7 /cutter.c
parent56f8752b9a08b43ffd0a8e7e4bb2b0d13fc6d28f (diff)
downloadvdr-8f9136ecab28d915d3e57f35badf4b74bb2bfce8.tar.gz
vdr-8f9136ecab28d915d3e57f35badf4b74bb2bfce8.tar.bz2
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)'
Diffstat (limited to 'cutter.c')
-rw-r--r--cutter.c6
1 files changed, 3 insertions, 3 deletions
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);