vdr 1.7.10: missing reset of file size

Message ID 4B09B401.2050409@tvdr.de
State New
Headers

Commit Message

Klaus Schmidinger Nov. 22, 2009, 9:58 p.m. UTC
  I'm afraid I forgot to reset the file size when regenerating the
index file. This should fix this in case the recording is split
over several files:



Klaus
  

Patch

--- recording.c 2009/11/22 11:20:53     2.18
+++ recording.c 2009/11/22 19:38:04
@@ -1412,8 +1412,11 @@ 
         // 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 {