diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2003-04-26 15:11:17 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2003-04-26 15:11:17 +0200 |
commit | c4b9c582705079e8ae8cf4a716ae75575e55e939 (patch) | |
tree | daab05a89cb7d781939d340e6633a4f748a52f93 /cutter.c | |
parent | a86ed8181bc949c55ed808592471494a925e69a8 (diff) | |
download | vdr-c4b9c582705079e8ae8cf4a716ae75575e55e939.tar.gz vdr-c4b9c582705079e8ae8cf4a716ae75575e55e939.tar.bz2 |
Now setting the 'broken link' flag for GOPs at the beginning of a new video sequence
Diffstat (limited to 'cutter.c')
-rw-r--r-- | cutter.c | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: cutter.c 1.2 2002/08/11 11:09:23 kls Exp $ + * $Id: cutter.c 1.3 2003/04/26 15:11:17 kls Exp $ */ #include "cutter.h" @@ -77,6 +77,7 @@ void cCuttingThread::Action(void) toMarks.Add(0); toMarks.Save(); uchar buffer[MAXFRAMESIZE]; + bool cutIn = true; while (active) { uchar FileNumber; int FileOffset, Length; @@ -126,6 +127,11 @@ void cCuttingThread::Action(void) FileSize = 0; } LastIFrame = 0; + + if (cutIn) { + cRemux::SetBrokenLink(buffer, Length); + cutIn = false; + } } if (safe_write(toFile, buffer, Length) < 0) { error = "safe_write"; @@ -151,6 +157,7 @@ void cCuttingThread::Action(void) Index = Mark->position; Mark = fromMarks.Next(Mark); CurrentFileNumber = 0; // triggers SetOffset before reading next frame + cutIn = true; if (Setup.SplitEditedFiles) { toFile = toFileName->NextFile(); if (toFile < 0) { |