Commit 8866f608 authored by Guillaume Roguez's avatar Guillaume Roguez
Browse files

#2918: fix SHMSink::resize_area() too often called

parent 8cb40158
......@@ -146,7 +146,7 @@ SHMSink::stop()
bool
SHMSink::resize_area(size_t desired_length)
{
if (desired_length < shm_area_len_)
if (desired_length <= shm_area_len_)
return true;
shm_unlock();
......
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