summaryrefslogtreecommitdiff
path: root/recorder.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 /recorder.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 'recorder.c')
-rw-r--r--recorder.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/recorder.c b/recorder.c
index d8f22ce1..4e48a51e 100644
--- a/recorder.c
+++ b/recorder.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: recorder.c 2.3 2009/03/20 15:49:02 kls Exp $
+ * $Id: recorder.c 2.4 2009/05/23 12:18:25 kls Exp $
*/
#include "recorder.h"
@@ -44,12 +44,14 @@ cRecorder::cRecorder(const char *FileName, tChannelID ChannelID, int Priority, i
Type = 0x06;
}
frameDetector = new cFrameDetector(Pid, Type);
- patPmtGenerator.SetChannel(Channel);
- fileName = NULL;
index = NULL;
fileSize = 0;
lastDiskSpaceCheck = time(NULL);
fileName = new cFileName(FileName, true);
+ int PatVersion, PmtVersion;
+ if (fileName->GetLastPatPmtVersions(PatVersion, PmtVersion))
+ patPmtGenerator.SetVersions(PatVersion + 1, PmtVersion + 1);
+ patPmtGenerator.SetChannel(Channel);
recordFile = fileName->Open();
if (!recordFile)
return;