From 14366746b65b92203ff1f5328c4ac35e165237f7 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Sat, 21 Mar 2015 17:52:01 +0100 Subject: Replace assert by warning --- src/VLCInput.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src') 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); -- cgit v1.2.3