summaryrefslogtreecommitdiff
path: root/recording.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 /recording.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 'recording.c')
-rw-r--r--recording.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/recording.c b/recording.c
index 497bf2dd..8e677c89 100644
--- a/recording.c
+++ b/recording.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: recording.c 2.73 2012/11/13 13:46:49 kls Exp $
+ * $Id: recording.c 2.74 2012/11/19 10:01:01 kls Exp $
*/
#include "recording.h"
@@ -1606,7 +1606,7 @@ void cIndexFileGenerator::Action(void)
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);
Length -= TS_SIZE;
p += TS_SIZE;
@@ -2132,7 +2132,7 @@ bool cFileName::GetLastPatPmtVersions(int &PatVersion, int &PmtVersion)
int Pid = TsPid(buf);
if (Pid == PATPID)
PatPmtParser.ParsePat(buf, sizeof(buf));
- else if (Pid == PatPmtParser.PmtPid()) {
+ else if (PatPmtParser.IsPmtPid(Pid)) {
PatPmtParser.ParsePmt(buf, sizeof(buf));
if (PatPmtParser.GetVersions(PatVersion, PmtVersion)) {
close(fd);