From 8866f6088e514b47cec9d3e14c63d66ddc2781ec Mon Sep 17 00:00:00 2001 From: Guillaume Roguez <guillaume.roguez@savoirfairelinux.com> Date: Tue, 27 Aug 2013 16:04:30 -0400 Subject: [PATCH] #2918: fix SHMSink::resize_area() too often called --- daemon/src/video/shm_sink.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/src/video/shm_sink.cpp b/daemon/src/video/shm_sink.cpp index ab3c4f5937..7ff67e2a6c 100644 --- a/daemon/src/video/shm_sink.cpp +++ b/daemon/src/video/shm_sink.cpp @@ -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(); -- GitLab