Commit 152916ce authored by Christopher Mueller's avatar Christopher Mueller Committed by Hugo Beauzée-Luyssen

dash: removed couts from buffer

Signed-off-by: default avatarHugo Beauzée-Luyssen <beauze.h@gmail.com>
parent 270faee2
...@@ -79,12 +79,9 @@ int BlockBuffer::peek (const uint8_t **pp_peek, unsigned int ...@@ -79,12 +79,9 @@ int BlockBuffer::peek (const uint8_t **pp_peek, unsigned int
if(ret > this->peekBlock->i_buffer) if(ret > this->peekBlock->i_buffer)
this->peekBlock = block_Realloc(this->peekBlock, 0, ret); this->peekBlock = block_Realloc(this->peekBlock, 0, ret);
std::cout << "Peek Bytes: " << ret << " from buffer length: " << this->sizeBytes << std::endl;
block_PeekBytes(&this->buffer, this->peekBlock->p_buffer, ret); block_PeekBytes(&this->buffer, this->peekBlock->p_buffer, ret);
*pp_peek = this->peekBlock->p_buffer; *pp_peek = this->peekBlock->p_buffer;
std::cout << "Buffer length Sec: " << this->sizeMicroSec << " Bytes: " << this->sizeBytes<< std::endl;
vlc_mutex_unlock(&this->monitorMutex); vlc_mutex_unlock(&this->monitorMutex);
return ret; return ret;
} }
...@@ -106,13 +103,9 @@ int BlockBuffer::get (void *p_data, unsigned int len) ...@@ -106,13 +103,9 @@ int BlockBuffer::get (void *p_data, unsigned int len)
this->reduceBufferMilliSec(ret); this->reduceBufferMilliSec(ret);
std::cout << "Get Bytes: " << ret << " from buffer length: " << this->sizeBytes << std::endl;
block_GetBytes(&this->buffer, (uint8_t *)p_data, ret); block_GetBytes(&this->buffer, (uint8_t *)p_data, ret);
block_BytestreamFlush(&this->buffer); block_BytestreamFlush(&this->buffer);
std::cout << "Buffer length: " << this->sizeMicroSec << " Bytes: " << this->sizeBytes << std::endl;
vlc_cond_signal(&this->empty); vlc_cond_signal(&this->empty);
vlc_mutex_unlock(&this->monitorMutex); vlc_mutex_unlock(&this->monitorMutex);
return ret; return ret;
...@@ -131,13 +124,11 @@ void BlockBuffer::put (block_t *block) ...@@ -131,13 +124,11 @@ void BlockBuffer::put (block_t *block)
return; return;
} }
std::cout << "Put MilliSec: " << block->i_length << " Bytes: " << block->i_buffer << " into buffer" << std::endl;
this->sizeMicroSec += block->i_length; this->sizeMicroSec += block->i_length;
this->sizeBytes += block->i_buffer; this->sizeBytes += block->i_buffer;
block_BytestreamPush(&this->buffer, block); block_BytestreamPush(&this->buffer, block);
std::cout << "Buffer length: " << this->sizeMicroSec << " Bytes: " << this->sizeBytes << std::endl;
vlc_cond_signal(&this->full); vlc_cond_signal(&this->full);
vlc_mutex_unlock(&this->monitorMutex); vlc_mutex_unlock(&this->monitorMutex);
} }
...@@ -198,7 +189,6 @@ void BlockBuffer::reduceBufferMilliSec (size_t bytes) ...@@ -198,7 +189,6 @@ void BlockBuffer::reduceBufferMilliSec (size_t bytes)
} }
} }
std::cout << "Reduce: " << microsec << std::endl;
this->sizeMicroSec -= microsec; this->sizeMicroSec -= microsec;
this->sizeBytes -= bytes; this->sizeBytes -= bytes;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment