summaryrefslogtreecommitdiff
path: root/recording.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2009-11-22 19:55:45 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2009-11-22 19:55:45 +0100
commita5e9da1de35a23371e2ecbeeafbcf65c9aa45093 (patch)
tree6148817c0464df5dca4d2b007f8fed617f21ee00 /recording.c
parent2d5dfd72de1ad54fb82fd4fa1709edfdb5b2b532 (diff)
downloadvdr-a5e9da1de35a23371e2ecbeeafbcf65c9aa45093.tar.gz
vdr-a5e9da1de35a23371e2ecbeeafbcf65c9aa45093.tar.bz2
Fixed resetting the file size when regenerating the index file
Diffstat (limited to 'recording.c')
-rw-r--r--recording.c7
1 files changed, 5 insertions, 2 deletions
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 {