diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2020-10-15 10:16:38 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2020-10-15 10:16:38 +0200 |
commit | 36be6abfbd34c4adc1543d6a90a5841f58b02574 (patch) | |
tree | c9ed3e5113a88043de2bf6124e88d831eafb5e44 /dvbdevice.c | |
parent | f24e93ade1ddd5cbb77bfaa42e2809556501d71f (diff) | |
download | vdr-36be6abfbd34c4adc1543d6a90a5841f58b02574.tar.gz vdr-36be6abfbd34c4adc1543d6a90a5841f58b02574.tar.bz2 |
Increased the size of the TS buffer to 16MB, to have more reserve when recording several HD programmes
Diffstat (limited to 'dvbdevice.c')
-rw-r--r-- | dvbdevice.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/dvbdevice.c b/dvbdevice.c index 66aedd89..df9510ba 100644 --- a/dvbdevice.c +++ b/dvbdevice.c @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: dvbdevice.c 4.23 2020/06/10 14:52:43 kls Exp $ + * $Id: dvbdevice.c 4.24 2020/10/15 10:16:38 kls Exp $ */ #include "dvbdevice.h" @@ -34,6 +34,8 @@ static int DvbApiVersion = 0x0000; // the version of the DVB driver actually in #define SCR_RANDOM_TIMEOUT 500 // ms (add random value up to this when tuning SCR device to avoid lockups) +#define TSBUFFERSIZE MEGABYTE(16) + // --- DVB Parameter Maps ---------------------------------------------------- const tDvbParameterMap PilotValues[] = { @@ -2311,7 +2313,7 @@ bool cDvbDevice::OpenDvr(void) CloseDvr(); fd_dvr = DvbOpen(DEV_DVB_DVR, adapter, frontend, O_RDONLY | O_NONBLOCK, true); if (fd_dvr >= 0) - tsBuffer = new cTSBuffer(fd_dvr, MEGABYTE(5), DeviceNumber() + 1); + tsBuffer = new cTSBuffer(fd_dvr, TSBUFFERSIZE, DeviceNumber() + 1); return fd_dvr >= 0; } |