summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2015-03-21 17:52:01 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2015-03-21 17:52:01 +0100
commit14366746b65b92203ff1f5328c4ac35e165237f7 (patch)
treef74e055b9ed86b32901e362917574a332d270ab3 /src
parentf226ecaf64c6553d4a24cffb7a68d154d350ddbb (diff)
downloadODR-AudioEnc-14366746b65b92203ff1f5328c4ac35e165237f7.tar.gz
ODR-AudioEnc-14366746b65b92203ff1f5328c4ac35e165237f7.tar.bz2
ODR-AudioEnc-14366746b65b92203ff1f5328c4ac35e165237f7.zip
Replace assert by warning
Diffstat (limited to 'src')
-rw-r--r--src/VLCInput.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/VLCInput.cpp b/src/VLCInput.cpp
index 54d9250..a370c78 100644
--- a/src/VLCInput.cpp
+++ b/src/VLCInput.cpp
@@ -166,7 +166,12 @@ void VLCInput::postRender_cb(uint8_t* p_pcm_buffer, size_t size)
{
boost::mutex::scoped_lock lock(m_queue_mutex);
- assert(m_current_buf.size() == size);
+ if (m_current_buf.size() != size) {
+ fprintf(stderr,
+ "Received buffer size is not equal allocated "
+ "buffer size: %zu vs %zu\n",
+ m_current_buf.size(), size);
+ }
size_t queue_size = m_queue.size();
m_queue.resize(m_queue.size() + size);