summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2014-09-25 13:38:53 +0200
committerStanislaw Halik <sthalik@misaki.pl>2014-09-25 13:39:09 +0200
commitb4663bbb85428ec3e4dd6725bb2d2ff2afa57bf6 (patch)
treecbbcdff5f5755a5f298096b0537cd03e55cb7a91
parent2cd3d41a6b35ea978ebf797dcc10a800bd78c658 (diff)
frames got clobbered, opencv sucks as usual
-rw-r--r--facetracknoir/gain-control.hpp2
1 files changed, 1 insertions, 1 deletions
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();