[vdr] vdr 1.7.10: missing reset of file size

Klaus Schmidinger Klaus.Schmidinger at tvdr.de
Sun Nov 22 22:58:25 CET 2009


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:

--- 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 {


Klaus



More information about the vdr mailing list