From 6d59e2866b91b5787dbe4d46955df70bd5a1e8fe Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Fri, 21 Feb 2014 09:20:36 +0100 Subject: [PATCH] Fixed detecting broken video data streams when recording --- HISTORY | 3 ++- recorder.c | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/HISTORY b/HISTORY index 150f5263..6e235666 100644 --- a/HISTORY +++ b/HISTORY @@ -8170,7 +8170,7 @@ Video Disk Recorder Revision History - Fixed a superfluous call to the skin's SetRecording() function after renaming a recording (reported by Christoph Haubrich). -2014-02-18: Version 2.1.5 +2014-02-21: Version 2.1.5 - Now checking whether the primary device actually has a decoder before retuning the current channel after a change in its parameters. This fixes broken recordings on @@ -8200,3 +8200,4 @@ Video Disk Recorder Revision History - Improved PAT/PMT scanning to speed up initial tuning to encrypted channels on transponders with many PAT entries (reported by Mariusz Bialonczyk). - Fixed the replay progress display for very long recordings. +- Fixed detecting broken video data streams when recording. diff --git a/recorder.c b/recorder.c index 38a4ed1e..3d6b8063 100644 --- a/recorder.c +++ b/recorder.c @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: recorder.c 3.2 2014/01/01 12:46:37 kls Exp $ + * $Id: recorder.c 3.3 2014/02/21 09:19:52 kls Exp $ */ #include "recorder.h" @@ -155,13 +155,13 @@ void cRecorder::Action(void) recordFile->Write(pmt, TS_SIZE); fileSize += TS_SIZE; } + t.Set(MAXBROKENTIMEOUT); } if (recordFile->Write(b, Count) < 0) { LOG_ERROR_STR(fileName->Name()); break; } fileSize += Count; - t.Set(MAXBROKENTIMEOUT); } } ringBuffer->Del(Count);