summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2013-01-25 14:34:08 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2013-01-25 14:34:08 +0100
commita5426b58c66e95fe6c96df65d2bc8d66e0ae3d77 (patch)
treeef4cc09168f0a2c030d7d91ddafbfb77fe90aed7
parenta906cd52df9795406ace1403687ef4b4f47bca64 (diff)
downloadvdr-a5426b58c66e95fe6c96df65d2bc8d66e0ae3d77.tar.gz
vdr-a5426b58c66e95fe6c96df65d2bc8d66e0ae3d77.tar.bz2
Improved responsiveness during replay when close to the recording's end
-rw-r--r--HISTORY1
-rw-r--r--recording.c5
2 files changed, 4 insertions, 2 deletions
diff --git a/HISTORY b/HISTORY
index d2d6d712..03983c4e 100644
--- a/HISTORY
+++ b/HISTORY
@@ -7547,3 +7547,4 @@ Video Disk Recorder Revision History
subtitle on the dvbhddevice in "high level" OSD mode.
- Returning 0 from cDvbSdFfDevice::NumProvidedSystems() if option --outputonly is given.
- The index file is now closed after initially reading it if it is older than 3600 seconds.
+- Improved responsiveness during replay when close to the recording's end.
diff --git a/recording.c b/recording.c
index c2803255..fcc99424 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 2.84 2013/01/25 14:31:04 kls Exp $
+ * $Id: recording.c 2.85 2013/01/25 14:33:16 kls Exp $
*/
#include "recording.h"
@@ -1865,7 +1865,8 @@ bool cIndexFile::CatchUp(int Index)
LOG_ERROR_STR(*fileName);
if (Index < last)
break;
- cCondWait::SleepMs(INDEXCATCHUPWAIT);
+ cCondVar CondVar;
+ CondVar.TimedWait(mutex, INDEXCATCHUPWAIT);
}
}
return index != NULL;