Mercurial > hg > match-vamp
diff src/MatchFeatureFeeder.cpp @ 63:a540137d393b refactors_no_float
Fix handling of empty queues -- we should continue processing when a queue is empty only if we've reached end of file on both
author | Chris Cannam |
---|---|
date | Tue, 18 Nov 2014 10:03:36 +0000 |
parents | faa523be20f9 |
children | da9ead46abe9 |
line wrap: on
line diff
--- a/src/MatchFeatureFeeder.cpp Fri Nov 14 13:53:58 2014 +0000 +++ b/src/MatchFeatureFeeder.cpp Tue Nov 18 10:03:36 2014 +0000 @@ -46,6 +46,14 @@ q2.push(f2); } + while (!q1.empty() && !q2.empty()) { + feedBlock(); + } +} + +void +MatchFeatureFeeder::finish() +{ while (!q1.empty() || !q2.empty()) { feedBlock(); }