From patchwork Sun Nov 22 21:58:25 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Klaus Schmidinger X-Patchwork-Id: 12762 Received: from racoon.tvdr.de ([188.40.50.18]) by mail.linuxtv.org with esmtp (Exim 4.69) (envelope-from ) id 1NCIaX-0008QA-Rh for vdr@linuxtv.org; Sun, 22 Nov 2009 20:59:14 +0100 Received: from whale.cadsoft.de (whale.tvdr.de [192.168.100.6]) by racoon.tvdr.de (8.14.3/8.14.3) with ESMTP id nAMJwd1o015829 for ; Sun, 22 Nov 2009 20:58:40 +0100 Received: from [192.168.100.20] (weasel.cadsoft.de [192.168.100.20]) by whale.cadsoft.de (8.14.3/8.14.3) with ESMTP id nAMJwYF7003507 for ; Sun, 22 Nov 2009 20:58:34 +0100 Message-ID: <4B09B401.2050409@tvdr.de> Date: Sun, 22 Nov 2009 22:58:25 +0100 From: Klaus Schmidinger User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 To: vdr@linuxtv.org X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.0.1 (racoon.tvdr.de [188.40.50.18]); Sun, 22 Nov 2009 20:58:40 +0100 (CET) X-LSpam-Score: -2.6 (--) X-LSpam-Report: No, score=-2.6 required=5.0 tests=AWL=0.000, BAYES_00=-2.599 autolearn=ham Subject: [vdr] vdr 1.7.10: missing reset of file size X-BeenThere: vdr@linuxtv.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: VDR Mailing List List-Id: VDR Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Nov 2009 19:59:14 -0000 Status: O X-Status: X-Keywords: X-UID: 21679 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 --- 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 {