From a5e9da1de35a23371e2ecbeeafbcf65c9aa45093 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sun, 22 Nov 2009 19:55:45 +0100 Subject: Fixed resetting the file size when regenerating the index file --- recording.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'recording.c') diff --git a/recording.c b/recording.c index ab94c32a..a6cba893 100644 --- a/recording.c +++ b/recording.c @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: recording.c 2.18 2009/11/22 11:20:53 kls Exp $ + * $Id: recording.c 2.19 2009/11/22 19:38:04 kls Exp $ */ #include "recording.h" @@ -1412,8 +1412,11 @@ void cIndexFileGenerator::Action(void) // Read data: else if (ReplayFile) { int Result = Buffer.Read(ReplayFile, BufferChunks); - if (Result == 0) // EOF + if (Result == 0) { // EOF ReplayFile = FileName.NextFile(); + FileSize = 0; + FrameOffset = -1; + } } // Recording has been processed: else { -- cgit v1.2.3