diff options
author | Klaus Schmidinger <kls (at) cadsoft (dot) de> | 2002-05-13 18:00:00 +0200 |
---|---|---|
committer | Klaus Schmidinger <kls (at) cadsoft (dot) de> | 2002-05-13 18:00:00 +0200 |
commit | d07e3829f7c44d713b2677ef73f864af80b3dea3 (patch) | |
tree | 8d6d89b303900b502ec52e83e408795a5728db52 /ringbuffer.c | |
parent | 803c6c6bf6340302f78171892bef599aa272c266 (diff) | |
download | vdr-patch-lnbsharing-d07e3829f7c44d713b2677ef73f864af80b3dea3.tar.gz vdr-patch-lnbsharing-d07e3829f7c44d713b2677ef73f864af80b3dea3.tar.bz2 |
Version 1.1.2vdr-1.1.2
- Changed the cPlugin::Start() function to return a boolean value that indicates
if the plugin will not be able to perform its task (suggested by Stefan Huelswitt).
- Added the cPlugin::Housekeeping() function (suggested by Stefan Huelswitt).
- Updated channels.conf.cable (thanks to Uwe Scheffler).
- Added 'insert' capabilities to cList (suggested by Stefan Huelswitt).
- Changed the 'package' target in the plugin's Makefile to produce a package that
expands to a directory with just the plugin name and version number (suggested
by Stefan Huelswitt).
- Made the config directory available to plugins (suggested by Stefan Huelswitt).
See PLUGINS.html, section "Configuration files" for details.
- Improved the [eid]syslog() macros, so that the LOG_... macros don't need to be
given any more.
Diffstat (limited to 'ringbuffer.c')
-rw-r--r-- | ringbuffer.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/ringbuffer.c b/ringbuffer.c index a52683d..3918297 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 1.6 2002/04/18 15:46:36 kls Exp $ + * $Id: ringbuffer.c 1.7 2002/05/13 16:31:46 kls Exp $ */ #include "ringbuffer.h" @@ -52,7 +52,7 @@ cRingBuffer::~cRingBuffer() delete inputThread; delete outputThread; if (statistics) - dsyslog(LOG_INFO, "buffer stats: %d (%d%%) used", maxFill, maxFill * 100 / (size - 1)); + dsyslog("buffer stats: %d (%d%%) used", maxFill, maxFill * 100 / (size - 1)); } void cRingBuffer::WaitForPut(void) @@ -121,11 +121,11 @@ cRingBufferLinear::cRingBufferLinear(int Size, bool Statistics) if (Size > 1) { // 'Size - 1' must not be 0! buffer = new uchar[Size]; if (!buffer) - esyslog(LOG_ERR, "ERROR: can't allocate ring buffer (size=%d)", Size); + esyslog("ERROR: can't allocate ring buffer (size=%d)", Size); Clear(); } else - esyslog(LOG_ERR, "ERROR: illegal size for ring buffer (%d)", Size); + esyslog("ERROR: illegal size for ring buffer (%d)", Size); } cRingBufferLinear::~cRingBufferLinear() @@ -163,7 +163,7 @@ int cRingBufferLinear::Put(const uchar *Data, int Count) maxFill = fill; int percent = maxFill * 100 / (Size() - 1); if (percent > 75) - dsyslog(LOG_INFO, "buffer usage: %d%%", percent); + dsyslog("buffer usage: %d%%", percent); } } if (free > 0) { @@ -228,7 +228,7 @@ cFrame::cFrame(const uchar *Data, int Count, eFrameType Type, int Index) if (data) memcpy(data, Data, count); else - esyslog(LOG_ERR, "ERROR: can't allocate frame buffer (count=%d)", count); + esyslog("ERROR: can't allocate frame buffer (count=%d)", count); next = NULL; } @@ -314,7 +314,7 @@ void cRingBufferFrame::Drop(const cFrame *Frame) } } else - esyslog(LOG_ERR, "ERROR: attempt to drop wrong frame from ring buffer!"); + esyslog("ERROR: attempt to drop wrong frame from ring buffer!"); } Unlock(); EnablePut(); |