Fix Analysis duration for added silence
[ardour.git] / libs / audiographer / src / general / analyser.cc
index d0c58f037fb5183802cd0fb3b3329cc30a979d0b..d216267fbd0ec9890ca5c4dbaf039940cf225bf0 100644 (file)
@@ -234,8 +234,8 @@ Analyser::process (ProcessContext<float> const & ctx)
 ARDOUR::ExportAnalysisPtr
 Analyser::result ()
 {
-       if (_pos == 0) {
        DEBUG_TRACE (PBD::DEBUG::ExportAnalysis, string_compose ("Processed %1 / %2 samples", _pos, _n_samples));
+       if (_pos == 0 || _pos != _n_samples) {
                return ARDOUR::ExportAnalysisPtr ();
        }
        if (_ebur128_plugin) {