From b4663bbb85428ec3e4dd6725bb2d2ff2afa57bf6 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 25 Sep 2014 13:38:53 +0200 Subject: frames got clobbered, opencv sucks as usual --- facetracknoir/gain-control.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'facetracknoir/gain-control.hpp') diff --git a/facetracknoir/gain-control.hpp b/facetracknoir/gain-control.hpp index 005ef9cc..98d45711 100644 --- a/facetracknoir/gain-control.hpp +++ b/facetracknoir/gain-control.hpp @@ -179,7 +179,7 @@ public: if (GAIN_HISTORY_COUNT > means_history.size() && history_timer.elapsed_ms() > GAIN_HISTORY_EVERY_MS) { - means_history.push_front(frame); + means_history.push_front(frame.clone()); if (GAIN_HISTORY_COUNT == means_history.size()) means_history.pop_back(); -- cgit v1.2.3