From e51e38bc3307749b0bcb76a1f72322d56b0c42d6 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sun, 24 May 2009 15:11:28 +0200 Subject: Fixed generating PAT/PMT version numbers in case the PIDs change during recording --- remux.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'remux.c') diff --git a/remux.c b/remux.c index 043b8bbc..f3d0f262 100644 --- a/remux.c +++ b/remux.c @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: remux.c 2.22 2009/05/17 09:46:10 kls Exp $ + * $Id: remux.c 2.23 2009/05/24 11:44:54 kls Exp $ */ #include "remux.h" @@ -357,6 +357,12 @@ void cPatPmtGenerator::GeneratePmt(cChannel *Channel) } } +void cPatPmtGenerator::SetVersions(int PatVersion, int PmtVersion) +{ + patVersion = PatVersion & 0x1F; + pmtVersion = PmtVersion & 0x1F; +} + void cPatPmtGenerator::SetChannel(cChannel *Channel) { if (Channel) { @@ -585,6 +591,13 @@ void cPatPmtParser::ParsePmt(const uchar *Data, int Length) pmtSize = 0; } +bool cPatPmtParser::GetVersions(int &PatVersion, int &PmtVersion) +{ + PatVersion = patVersion; + PmtVersion = pmtVersion; + return patVersion >= 0 && pmtVersion >= 0; +} + // --- cTsToPes -------------------------------------------------------------- cTsToPes::cTsToPes(void) -- cgit v1.2.3