From 29e81b41913ddbd54c991a3f134e4739206f4bc5 Mon Sep 17 00:00:00 2001 From: Austin Van Blanton Date: Thu, 8 Aug 2013 12:00:29 -0400 Subject: [PATCH] Make AggregateFrames play nice with DropFrames --- openbr/plugins/frames.cpp | 3 +++ 1 file changed, 3 insertions(+), 0 deletions(-) diff --git a/openbr/plugins/frames.cpp b/openbr/plugins/frames.cpp index ea06dcf..440d36f 100644 --- a/openbr/plugins/frames.cpp +++ b/openbr/plugins/frames.cpp @@ -29,6 +29,9 @@ private: void projectUpdate(const Template &src, Template &dst) { + // DropFrames will pass on empty Templates + // but we only want to use non-dropped frames + if (src.empty()) return; buffer.append(src); if (buffer.size() < n) return; foreach (const Template &t, buffer) dst.append(t); -- libgit2 0.21.4