Now reducing the thread and I/O priority cCuttingThread::Action()

This commit is contained in:
Klaus Schmidinger 2011-03-06 14:59:57 +01:00
parent 607c860c81
commit e8406def02
3 changed files with 9 additions and 2 deletions

View File

@ -2662,3 +2662,6 @@ Andreas Oberritter <obi@opendreambox.org>
Milan Cvijanovic <elcom_cvijo@hotmail.com>
for translating OSD texts to the Serbian language
Frank Neumann <frank.neumann@hp.com>
for suggesting to reduce the thread and I/O priority cCuttingThread::Action()

View File

@ -6481,7 +6481,7 @@ Video Disk Recorder Revision History
from Osama Alrawab). See INSTALL for information on how to turn this on.
- Added Arabian language texts (thanks to Osama Alrawab).
2011-02-27: Version 1.7.17
2011-03-06: Version 1.7.17
- Updated the Estonian OSD texts (thanks to Arthur Konovalov).
- Fixed following symbolic links in RemoveFileOrDir() (cont'd) (thanks to
@ -6547,3 +6547,5 @@ Video Disk Recorder Revision History
boost in the AlphaBlend() function.
- While replaying, the editing marks are now updated every 10 seconds (based on a
patch from Manuel Reimer).
- Now reducing the thread and I/O priority cCuttingThread::Action() to make the
foreground process more responsive (suggested by Frank Neumann).

View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
* $Id: cutter.c 2.5 2010/08/29 13:35:18 kls Exp $
* $Id: cutter.c 2.6 2011/03/06 14:54:33 kls Exp $
*/
#include "cutter.h"
@ -68,6 +68,8 @@ void cCuttingThread::Action(void)
{
cMark *Mark = fromMarks.First();
if (Mark) {
SetPriority(19);
SetIOPriority(7);
fromFile = fromFileName->Open();
toFile = toFileName->Open();
if (!fromFile || !toFile)