From 5f5dfd7f69963abcdcceed88e649c83e6ea5709e Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sun, 17 Aug 2003 18:00:00 +0200 Subject: =?UTF-8?q?Version=201.2.3=20(not=20officially=20released)=20-=20F?= =?UTF-8?q?ixed=20the=20TS=20to=20PES=20repacker=20so=20that=20it=20works?= =?UTF-8?q?=20with=20MPEG1=20streams=20(thanks=20to=20=20=20Andreas=20Kool?= =?UTF-8?q?).=20-=20Fixed=20keeping=20track=20of=20the=20current=20channel?= =?UTF-8?q?=20number=20when=20moving=20channels=20in=20=20=20the=20"Channe?= =?UTF-8?q?ls"=20menu=20(thanks=20to=20Mirko=20G=C3=BCnther=20for=20report?= =?UTF-8?q?ing=20this=20one).=20-=20Made=20the=20plugin=20library=20direct?= =?UTF-8?q?ory=20configurable=20via=20Make.config=20(thanks=20to=20=20=20L?= =?UTF-8?q?udwig=20Nussel).=20-=20Fixed=20scaling=20SPU=20bitmaps=20in=20L?= =?UTF-8?q?etterbox=20mode=20when=20playing=20NTSC=20material.=20=20=20In?= =?UTF-8?q?=20order=20to=20do=20this,=20the=20cDevice=20was=20given=20a=20?= =?UTF-8?q?new=20member=20function=20GetVideoSystem().=20-=20Fixed=20two?= =?UTF-8?q?=20warnings=20when=20compiling=20with=20gcc=203.3.1=20(thanks?= =?UTF-8?q?=20to=20Alfred=20Zastrow=20for=20=20=20reporting=20this).=20-?= =?UTF-8?q?=20Made=20crc32()=20a=20static=20function=20in=20libdtv/libsi/s?= =?UTF-8?q?i=5Fparser.c=20to=20avoid=20a=20name=20clash=20=20=20when=20usi?= =?UTF-8?q?ng=20other=20libraries=20that=20also=20implement=20a=20function?= =?UTF-8?q?=20by=20that=20name=20(thanks=20=20=20to=20Reinhard=20Nissl=20f?= =?UTF-8?q?or=20reporting=20this=20one).=20-=20Fixed=20staying=20off=20the?= =?UTF-8?q?=20end=20of=20an=20ongoing=20recording=20while=20replaying=20in?= =?UTF-8?q?=20time=20shift=20=20=20mode=20(thanks=20to=20Rainer=20Zocholl?= =?UTF-8?q?=20for=20reporting=20this=20one).=20-=20VDR=20now=20stops=20wit?= =?UTF-8?q?h=20exit=20status=202=20if=20one=20of=20the=20configuration=20f?= =?UTF-8?q?iles=20can't=20be=20=20=20read=20correctly=20at=20program=20sta?= =?UTF-8?q?rtup=20(suggested=20by=20Rainer=20Zocholl).=20-=20Fixed=20a=20c?= =?UTF-8?q?rash=20when=20starting=20"Pause=20live=20video"=20twice=20withi?= =?UTF-8?q?n=20the=20same=20minute=20on=20=20=20the=20same=20channel.=20-?= =?UTF-8?q?=20Fixed=20freezing=20replay=20if=20a=20timer=20starts=20while?= =?UTF-8?q?=20in=20Transfer=20Mode=20from=20the=20device=20=20=20used=20by?= =?UTF-8?q?=20the=20timer,=20and=20the=20timer=20needs=20a=20different=20t?= =?UTF-8?q?ransponder=20(thanks=20to=20=20=20Richard=20Robson=20for=20repo?= =?UTF-8?q?rting=20this=20one).=20-=20Fixed=20toggling=20channels=20with?= =?UTF-8?q?=20the=20'0'=20key=20(thanks=20to=20Mirko=20G=C3=BCnther=20for?= =?UTF-8?q?=20reporting=20=20=20this=20one).=20-=20Made=20the=20"Zap=20tim?= =?UTF-8?q?eout"=20(the=20time=20until=20a=20channel=20counts=20as=20"prev?= =?UTF-8?q?ious"=20for=20=20=20switching=20with=20'0')=20a=20setup=20varia?= =?UTF-8?q?ble,=20available=20in=20"Setup/Miscellaneous"=20=20=20(suggeste?= =?UTF-8?q?d=20by=20Helmut=20Auer).=20-=20Removing=20deleted=20recordings?= =?UTF-8?q?=20faster=20than=20normal=20when=20cutting,=20to=20avoid=20runn?= =?UTF-8?q?ing=20=20=20out=20of=20disk=20space=20(thanks=20to=20Manfred=20?= =?UTF-8?q?Schmidt-Voigt=20for=20reporting=20this=20one).?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- recording.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'recording.c') diff --git a/recording.c b/recording.c index 06f6325..bcbfd9f 100644 --- a/recording.c +++ b/recording.c @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: recording.c 1.80 2003/05/30 13:23:54 kls Exp $ + * $Id: recording.c 1.82 2003/08/17 09:10:46 kls Exp $ */ #include "recording.h" @@ -95,7 +95,8 @@ void AssertFreeDiskSpace(int Priority) // a file, or mark a file for removal ("delete" it), so that // it will get removed during the next call. static time_t LastFreeDiskCheck = 0; - if (time(NULL) - LastFreeDiskCheck > DISKCHECKDELTA) { + int Factor = (Priority == -1) ? 10 : 1; + if (time(NULL) - LastFreeDiskCheck > DISKCHECKDELTA / Factor) { if (!VideoFileSpaceAvailable(MINDISKSPACE)) { // Make sure only one instance of VDR does this: cLockFile LockFile(VideoDirectory); @@ -113,7 +114,7 @@ void AssertFreeDiskSpace(int Priority) r = Recordings.Next(r); } if (r0 && r0->Remove()) { - LastFreeDiskCheck += REMOVELATENCY; + LastFreeDiskCheck += REMOVELATENCY / Factor; return; } } @@ -770,7 +771,7 @@ void cRecordingUserCommand::InvokeCommand(const char *State, const char *Recordi #define INDEXFILESUFFIX "/index.vdr" // The number of frames to stay off the end in case of time shift: -#define INDEXSAFETYLIMIT 100 // frames +#define INDEXSAFETYLIMIT 150 // frames // The maximum time to wait before giving up while catching up on an index file: #define MAXINDEXCATCHUP 8 // seconds -- cgit v1.2.3