summaryrefslogtreecommitdiff
path: root/cutter.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2009-04-19 11:07:07 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2009-04-19 11:07:07 +0200
commit3f492c4f5732abdb15a193fb610a9a73115a4972 (patch)
tree31002fec1757f4df9cac3bd8bd0af2aaf128cbb5 /cutter.c
parent457208b101fd86464018d94f2d97f008069ddabd (diff)
downloadvdr-3f492c4f5732abdb15a193fb610a9a73115a4972.tar.gz
vdr-3f492c4f5732abdb15a193fb610a9a73115a4972.tar.bz2
Implemented TsSetTeiOnBrokenPackets()
Diffstat (limited to 'cutter.c')
-rw-r--r--cutter.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/cutter.c b/cutter.c
index 73ac873f..e83c5ac1 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.2 2009/01/24 15:19:26 kls Exp $
+ * $Id: cutter.c 2.3 2009/04/19 10:56:33 kls Exp $
*/
#include "cutter.h"
@@ -18,6 +18,7 @@
class cCuttingThread : public cThread {
private:
const char *error;
+ bool isPesRecording;
cUnbufferedFile *fromFile, *toFile;
cFileName *fromFileName, *toFileName;
cIndexFile *fromIndex, *toIndex;
@@ -39,7 +40,7 @@ cCuttingThread::cCuttingThread(const char *FromFileName, const char *ToFileName)
fromFileName = toFileName = NULL;
fromIndex = toIndex = NULL;
cRecording Recording(FromFileName);
- bool isPesRecording = Recording.IsPesRecording();
+ isPesRecording = Recording.IsPesRecording();
if (fromMarks.Load(FromFileName, Recording.FramesPerSecond(), isPesRecording) && fromMarks.Count()) {
fromFileName = new cFileName(FromFileName, false, true, isPesRecording);
toFileName = new cFileName(ToFileName, true, true, isPesRecording);
@@ -140,7 +141,10 @@ void cCuttingThread::Action(void)
LastIFrame = 0;
if (cutIn) {
- cRemux::SetBrokenLink(buffer, Length);
+ if (isPesRecording)
+ cRemux::SetBrokenLink(buffer, Length);
+ else
+ TsSetTeiOnBrokenPackets(buffer, Length);
cutIn = false;
}
}