From 24883d3d230de881aff84cbf52ce8323c2cf353c Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sun, 16 Sep 2001 09:35:51 +0200 Subject: Fixed putting the final editing mark into the edited version's marks file --- dvbapi.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'dvbapi.c') diff --git a/dvbapi.c b/dvbapi.c index 86c692b6..4a019cca 100644 --- a/dvbapi.c +++ b/dvbapi.c @@ -7,7 +7,7 @@ * DVD support initially written by Andreas Schultz * based on dvdplayer-0.5 by Matjaz Thaler * - * $Id: dvbapi.c 1.121 2001/09/15 14:15:21 kls Exp $ + * $Id: dvbapi.c 1.122 2001/09/16 09:35:51 kls Exp $ */ //#define DVDDEBUG 1 @@ -2382,13 +2382,14 @@ void cCuttingBuffer::Action(void) if (Mark && Index >= Mark->position) { Mark = fromMarks.Next(Mark); + toMarks.Add(LastIFrame); + if (Mark) + toMarks.Add(toIndex->Last() + 1); + toMarks.Save(); if (Mark) { Index = Mark->position; Mark = fromMarks.Next(Mark); CurrentFileNumber = 0; // triggers SetOffset before reading next frame - toMarks.Add(LastIFrame); - toMarks.Add(toIndex->Last() + 1); - toMarks.Save(); } else break; // final end mark reached -- cgit v1.2.3