summaryrefslogtreecommitdiff
path: root/cutter.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2003-04-26 15:11:17 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2003-04-26 15:11:17 +0200
commitc4b9c582705079e8ae8cf4a716ae75575e55e939 (patch)
treedaab05a89cb7d781939d340e6633a4f748a52f93 /cutter.c
parenta86ed8181bc949c55ed808592471494a925e69a8 (diff)
downloadvdr-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.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/cutter.c b/cutter.c
index 234201cd..5ce0a2c4 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 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) {