LinuxTV Patchwork vdr 1.7.10: missing reset of file size

login
register
mail settings
Submitter Klaus Schmidinger
Date Nov. 22, 2009, 9:58 p.m.
Message ID <4B09B401.2050409@tvdr.de>
Download mbox | patch
Permalink /patch/12762/
State New
Headers show

Comments

Klaus Schmidinger - Nov. 22, 2009, 9:58 p.m.
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 {

Privacy Policy