summaryrefslogtreecommitdiff
path: root/ringbuffer.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2012-09-17 08:48:20 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2012-09-17 08:48:20 +0200
commit8423b5ea4c756a3e7c554ec51d7989e32ddfcfea (patch)
treef5aa787cf0536d63b975c89a37c85748f0e8a072 /ringbuffer.c
parent050b7cdebf50eac14c10f31fc1924ab09f7b3987 (diff)
downloadvdr-8423b5ea4c756a3e7c554ec51d7989e32ddfcfea.tar.gz
vdr-8423b5ea4c756a3e7c554ec51d7989e32ddfcfea.tar.bz2
Decreased the ring buffer put/get trigger sizes from 1/3 to 1/10
Diffstat (limited to 'ringbuffer.c')
-rw-r--r--ringbuffer.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ringbuffer.c b/ringbuffer.c
index 1bdeaccc..269623d4 100644
--- a/ringbuffer.c
+++ b/ringbuffer.c
@@ -7,7 +7,7 @@
* Parts of this file were inspired by the 'ringbuffy.c' from the
* LinuxDVB driver (see linuxtv.org).
*
- * $Id: ringbuffer.c 2.3 2009/11/22 11:14:36 kls Exp $
+ * $Id: ringbuffer.c 2.4 2012/09/17 08:23:43 kls Exp $
*/
#include "ringbuffer.h"
@@ -66,13 +66,13 @@ void cRingBuffer::WaitForGet(void)
void cRingBuffer::EnablePut(void)
{
- if (putTimeout && Free() > Size() / 3)
+ if (putTimeout && Free() > Size() / 10)
readyForPut.Signal();
}
void cRingBuffer::EnableGet(void)
{
- if (getTimeout && Available() > Size() / 3)
+ if (getTimeout && Available() > Size() / 10)
readyForGet.Signal();
}