summaryrefslogtreecommitdiff
path: root/transfer.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2005-01-16 15:30:43 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2005-01-16 15:30:43 +0100
commit7276c54bafbcb5bac3371effb773918df84acc87 (patch)
tree345f49cb5931b44ac9d77b8a8f79d6bedec6783f /transfer.c
parent8c0981583fcd5e531ac955cd8184866dd4eaf9a2 (diff)
downloadvdr-7276c54bafbcb5bac3371effb773918df84acc87.tar.gz
vdr-7276c54bafbcb5bac3371effb773918df84acc87.tar.bz2
Extended some buffer sizes to allow handling HDTV streams
Diffstat (limited to 'transfer.c')
-rw-r--r--transfer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/transfer.c b/transfer.c
index 537bb8f7..b151971e 100644
--- a/transfer.c
+++ b/transfer.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: transfer.c 1.23 2005/01/16 13:26:38 kls Exp $
+ * $Id: transfer.c 1.24 2005/01/16 15:12:58 kls Exp $
*/
#include "transfer.h"
@@ -80,7 +80,7 @@ void cTransfer::Action(void)
//XXX To resolve this, the remuxer or PlayPes() should synchronize
//XXX audio with the video frames. 2004/09/09 Werner
if (!GotBufferReserve) {
- if (ringBuffer->Available() < 3 * MAXFRAMESIZE / 2) {
+ if (ringBuffer->Available() < 3 * KILOBYTE(192) / 2) { // used to be MAXFRAMESIZE, but the HDTV value of KILOBYTE(512) is way too much here
cCondWait::SleepMs(20); // allow the buffer to collect some reserve
continue;
}