summaryrefslogtreecommitdiff
path: root/dvbplayer.c
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 /dvbplayer.c
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
Diffstat (limited to 'dvbplayer.c')
-rw-r--r--dvbplayer.c4
1 files changed, 2 insertions, 2 deletions
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