From e8ae4afd0961cc93cbca3830fe065f6da9d806c9 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Mon, 27 May 2019 14:15:06 +0200 Subject: 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 --- dvbplayer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dvbplayer.c') 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 -- cgit v1.2.3