Commit 29e81b41913ddbd54c991a3f134e4739206f4bc5

Authored by Austin Van Blanton
1 parent c391c7c9

Make AggregateFrames play nice with DropFrames

Showing 1 changed file with 3 additions and 0 deletions
openbr/plugins/frames.cpp
@@ -29,6 +29,9 @@ private: @@ -29,6 +29,9 @@ private:
29 29
30 void projectUpdate(const Template &src, Template &dst) 30 void projectUpdate(const Template &src, Template &dst)
31 { 31 {
  32 + // DropFrames will pass on empty Templates
  33 + // but we only want to use non-dropped frames
  34 + if (src.empty()) return;
32 buffer.append(src); 35 buffer.append(src);
33 if (buffer.size() < n) return; 36 if (buffer.size() < n) return;
34 foreach (const Template &t, buffer) dst.append(t); 37 foreach (const Template &t, buffer) dst.append(t);