summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2019-05-27 14:15:06 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2019-05-27 14:15:06 +0200
commite8ae4afd0961cc93cbca3830fe065f6da9d806c9 (patch)
treef4ae32242b7556cd53be18fdea16c9d39b5e3336
parent96aa4cacae85d94ff0d7892e511874f3d2b6865f (diff)
downloadvdr-e8ae4afd0961cc93cbca3830fe065f6da9d806c9.tar.gz
vdr-e8ae4afd0961cc93cbca3830fe065f6da9d806c9.tar.bz2
Increased PLAYERBUFSIZE to (MAXFRAMESIZE * 5) to avoid stuttering replay under heavy system load, and to better document that this buffer size is related to the maximum frame size
-rw-r--r--HISTORY5
-rw-r--r--dvbplayer.c4
2 files changed, 6 insertions, 3 deletions
diff --git a/HISTORY b/HISTORY
index ec71f4f1..6d2651f6 100644
--- a/HISTORY
+++ b/HISTORY
@@ -9348,7 +9348,7 @@ Video Disk Recorder Revision History
Senzel).
- Official release.
-2019-05-23: Version 2.4.1
+2019-05-27: Version 2.4.1
- Fixed handling the tfRecording flag in the SVDRP commands MODT and UPDT (reported
by Johann Friedrichs).
@@ -9409,3 +9409,6 @@ Video Disk Recorder Revision History
this is inappropriate; implicitly setting events to "not running" is now also logged.
- Fixed asserting free disk space in case there is no local timer currently recording.
- The default maximum size of a cPixmap has been raised to the maximum possible value.
+- Increased PLAYERBUFSIZE to (MAXFRAMESIZE * 5) to avoid stuttering replay under heavy
+ system load, and to better document that this buffer size is related to the maximum
+ frame size.
diff --git a/dvbplayer.c b/dvbplayer.c
index d1c02f9f..33c992bd 100644
--- a/dvbplayer.c
+++ b/dvbplayer.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: dvbplayer.c 4.5 2017/11/26 14:55:03 kls Exp $
+ * $Id: dvbplayer.c 4.6 2019/05/27 13:54:19 kls Exp $
*/
#include "dvbplayer.h"
@@ -230,7 +230,7 @@ bool cNonBlockingFileReader::WaitForDataMs(int msToWait)
// --- cDvbPlayer ------------------------------------------------------------
-#define PLAYERBUFSIZE MEGABYTE(1)
+#define PLAYERBUFSIZE (MAXFRAMESIZE * 5)
#define RESUMEBACKUP 10 // number of seconds to back up when resuming an interrupted replay session
#define MAXSTUCKATEOF 3 // max. number of seconds to wait in case the device doesn't play the last frame