Decreased the ring buffer put/get trigger sizes from 1/3 to 1/10

This commit is contained in:
Klaus Schmidinger 2012-09-17 08:48:20 +02:00
parent 050b7cdebf
commit 8423b5ea4c
2 changed files with 5 additions and 4 deletions

View File

@ -7235,7 +7235,7 @@ Video Disk Recorder Revision History
function in order to make use of this new feature. See, for instance, the function function in order to make use of this new feature. See, for instance, the function
cSkinClassicDisplayMenu::SetButtons() in skinclassic.c for details. cSkinClassicDisplayMenu::SetButtons() in skinclassic.c for details.
2012-09-15: Version 1.7.31 2012-09-17: Version 1.7.31
- If regenerating an index file fails and no data is written to the file, VDR now - If regenerating an index file fails and no data is written to the file, VDR now
reports this error and removes the empty index file. reports this error and removes the empty index file.
@ -7244,3 +7244,4 @@ Video Disk Recorder Revision History
- The setup parameter "Recording/Instant rec. time (min)" can now be set to '0', - The setup parameter "Recording/Instant rec. time (min)" can now be set to '0',
which means to record only the currently running event (based on a patch from Matti which means to record only the currently running event (based on a patch from Matti
Lehtimäki). Lehtimäki).
- Decreased the ring buffer put/get trigger sizes from 1/3 to 1/10.

View File

@ -7,7 +7,7 @@
* Parts of this file were inspired by the 'ringbuffy.c' from the * Parts of this file were inspired by the 'ringbuffy.c' from the
* LinuxDVB driver (see linuxtv.org). * 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" #include "ringbuffer.h"
@ -66,13 +66,13 @@ void cRingBuffer::WaitForGet(void)
void cRingBuffer::EnablePut(void) void cRingBuffer::EnablePut(void)
{ {
if (putTimeout && Free() > Size() / 3) if (putTimeout && Free() > Size() / 10)
readyForPut.Signal(); readyForPut.Signal();
} }
void cRingBuffer::EnableGet(void) void cRingBuffer::EnableGet(void)
{ {
if (getTimeout && Available() > Size() / 3) if (getTimeout && Available() > Size() / 10)
readyForGet.Signal(); readyForGet.Signal();
} }