summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2011-03-06 14:59:57 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2011-03-06 14:59:57 +0100
commite8406def0265747e484e2689cd5d26bee23ec3b0 (patch)
treec2c7dbb147ba39c9126c47f60fd5e94c9cbf483c
parent607c860c81920dcca458862136b2e5f784803c4a (diff)
downloadvdr-e8406def0265747e484e2689cd5d26bee23ec3b0.tar.gz
vdr-e8406def0265747e484e2689cd5d26bee23ec3b0.tar.bz2
Now reducing the thread and I/O priority cCuttingThread::Action()
-rw-r--r--CONTRIBUTORS3
-rw-r--r--HISTORY4
-rw-r--r--cutter.c4
3 files changed, 9 insertions, 2 deletions
diff --git a/CONTRIBUTORS b/CONTRIBUTORS
index c1189580..e0bc748e 100644
--- a/CONTRIBUTORS
+++ b/CONTRIBUTORS
@@ -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()
diff --git a/HISTORY b/HISTORY
index 242f1945..9530aee6 100644
--- a/HISTORY
+++ b/HISTORY
@@ -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).
diff --git a/cutter.c b/cutter.c
index c1f49849..96739fdd 100644
--- a/cutter.c
+++ b/cutter.c
@@ -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)