Commit 33f12311 authored by Sebastien Petitdemange's avatar Sebastien Petitdemange

Merge branch 'fix_hw_buffer_realloc' into core-1.7

parents fd4638e9 57c7492d
......@@ -91,12 +91,13 @@ void SoftBufferAllocMgr::allocBuffers(int nb_buffers,
THROW_HW_ERROR(InvalidValue) << "Invalid "
<< DEB_VAR1(nb_buffers);
if (frame_dim != m_frame_dim)
releaseBuffers();
int curr_nb_buffers;
getNbBuffers(curr_nb_buffers);
int to_alloc = (nb_buffers - curr_nb_buffers);
if (frame_dim != m_frame_dim) {
releaseBuffers();
} else if (to_alloc == 0) {
int to_alloc = nb_buffers - curr_nb_buffers;
if (to_alloc == 0) {
DEB_TRACE() << "Nothing to do";
return;
}
......
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