summaryrefslogtreecommitdiff
path: root/libs/audiographer
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2016-02-16 13:22:12 +0100
committerRobin Gareus <robin@gareus.org>2016-02-16 13:22:12 +0100
commite18e765c7553f2fc9b74323065e3bb4452c22cbb (patch)
tree7d4f32ddfb610b391a315076f63a8363848df7fd /libs/audiographer
parent9ab061c6cb317341705cf2e0a2b1af97f9663f23 (diff)
Fix Analysis duration for added silence
Diffstat (limited to 'libs/audiographer')
-rw-r--r--libs/audiographer/src/general/analyser.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/audiographer/src/general/analyser.cc b/libs/audiographer/src/general/analyser.cc
index d0c58f037f..d216267fbd 100644
--- a/libs/audiographer/src/general/analyser.cc
+++ b/libs/audiographer/src/general/analyser.cc
@@ -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) {