X-Git-Url: http://code.vuplus.com/gitweb/?a=blobdiff_plain;f=lib%2Fbase%2Fringbuffer.h;h=3118161e8c3b251c9f5d31b244ca40777d4b5571;hb=875ad71cf9bcace9336cb8eafa8974b84a5347b2;hp=f2cd9058805ed340985fca482686441db5af55dc;hpb=d63d2c3c6cbbd574dda4f8b00ebe6c661735edd5;p=vuplus_dvbapp diff --git a/lib/base/ringbuffer.h b/lib/base/ringbuffer.h index f2cd905..3118161 100644 --- a/lib/base/ringbuffer.h +++ b/lib/base/ringbuffer.h @@ -31,6 +31,7 @@ public: template queueRingBuffer::queueRingBuffer( unsigned int max ) { + count = 0; // constructor for queues based on ring buffers // create the first link T initialvalue; @@ -91,7 +92,7 @@ void queueRingBuffer::enqueue( const T &val ) // first check for potential overflow if( lastFilled->nextLink == lastFree ) { - eDebug("increase size %d", count); +// eDebug("increase size %d", count); link * newLink = new link( val ); newLink->prevLink = lastFilled; newLink->nextLink = lastFilled->nextLink;