summaryrefslogtreecommitdiff
path: root/dvbapi.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2001-09-30 11:31:43 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2001-09-30 11:31:43 +0200
commitcc761811cea8da5f94957fb30e24afb020fb740e (patch)
tree802602da3f60ee64f0916d4a2b63a2c543ecff47 /dvbapi.c
parenta0d04288c6cf76294772ec000a90f423dab3edbe (diff)
downloadvdr-cc761811cea8da5f94957fb30e24afb020fb740e.tar.gz
vdr-cc761811cea8da5f94957fb30e24afb020fb740e.tar.bz2
New setup parameter SplitEditedFiles
Diffstat (limited to 'dvbapi.c')
-rw-r--r--dvbapi.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/dvbapi.c b/dvbapi.c
index 8a6e6915..0f114459 100644
--- a/dvbapi.c
+++ b/dvbapi.c
@@ -7,7 +7,7 @@
* DVD support initially written by Andreas Schultz <aschultz@warp10.net>
* based on dvdplayer-0.5 by Matjaz Thaler <matjaz.thaler@guest.arnes.si>
*
- * $Id: dvbapi.c 1.129 2001/09/23 13:44:27 kls Exp $
+ * $Id: dvbapi.c 1.130 2001/09/30 11:28:58 kls Exp $
*/
//#define DVDDEBUG 1
@@ -2392,6 +2392,12 @@ void cCuttingBuffer::Action(void)
Index = Mark->position;
Mark = fromMarks.Next(Mark);
CurrentFileNumber = 0; // triggers SetOffset before reading next frame
+ if (Setup.SplitEditedFiles) {
+ toFile = toFileName->NextFile();
+ if (toFile < 0)
+ break;
+ FileSize = 0;
+ }
}
// the 'else' case (i.e. 'final end mark reached') is handled above
// in 'Write one frame', so that the edited version will end right