summaryrefslogtreecommitdiff
path: root/remux.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2009-05-24 15:11:28 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2009-05-24 15:11:28 +0200
commite51e38bc3307749b0bcb76a1f72322d56b0c42d6 (patch)
tree0b11e2641bb754a96bf24bdff3e99bebf3f6e117 /remux.c
parent6cdfb489aea9b4e8ea7f3287c76227a573b75161 (diff)
downloadvdr-e51e38bc3307749b0bcb76a1f72322d56b0c42d6.tar.gz
vdr-e51e38bc3307749b0bcb76a1f72322d56b0c42d6.tar.bz2
Fixed generating PAT/PMT version numbers in case the PIDs change during recording
Diffstat (limited to 'remux.c')
-rw-r--r--remux.c15
1 files changed, 14 insertions, 1 deletions
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)