From 5a44b8b801493cc7ed474309076d8cd9296ba59f Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sun, 10 Feb 2008 12:52:14 +0100 Subject: [PATCH] Running the thread that removes deleted recordings at a low priority --- HISTORY | 4 +++- recording.c | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/HISTORY b/HISTORY index cacaf82d..ad703239 100644 --- a/HISTORY +++ b/HISTORY @@ -5579,7 +5579,7 @@ Video Disk Recorder Revision History is not available, in order to allow staying on an encrypted channel that takes a while for the CAM to start decrypting. -2008-02-09: Version 1.5.15 +2008-02-10: Version 1.5.15 - Updated the Italian OSD texts (thanks to Diego Pierotto). - Added option -i to the pictures plugin's pic2mpg to ignore unknown file types. @@ -5611,3 +5611,5 @@ Video Disk Recorder Revision History it applies to non-VPS recordings as well. - Fixed a loss of a timer's 'recording' flag after modifying it via MODT. - Fixed detecting directories in cFileNameList::Load(). +- Running the thread that removes deleted recordings at a low priority to (maybe) + avoid stuttering replay in case the thread is run during replay. diff --git a/recording.c b/recording.c index 7999f724..e4e2be6a 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.157 2007/11/04 11:17:43 kls Exp $ + * $Id: recording.c 1.158 2008/02/10 12:52:14 kls Exp $ */ #include "recording.h" @@ -81,6 +81,7 @@ cRemoveDeletedRecordingsThread::cRemoveDeletedRecordingsThread(void) void cRemoveDeletedRecordingsThread::Action(void) { + SetPriority(19); // Make sure only one instance of VDR does this: cLockFile LockFile(VideoDirectory); if (LockFile.Lock()) {