summaryrefslogtreecommitdiff
path: root/libs/audiographer/audiographer/general/silence_trimmer.h
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2013-12-03 11:51:25 -0500
committerPaul Davis <paul@linuxaudiosystems.com>2013-12-03 11:51:25 -0500
commit8648a8a13b04549362f14a0738947d997ef1abc7 (patch)
tree702652b49789b13d647c4c93df985f65361a4118 /libs/audiographer/audiographer/general/silence_trimmer.h
parentc428ec14b923928690492cab0428f8fad45f7658 (diff)
parentae6b0b9f1ab02ab949eaf741b98e69bdab487e92 (diff)
fix up wscript/build issues in exportvis after merge with master
Diffstat (limited to 'libs/audiographer/audiographer/general/silence_trimmer.h')
-rw-r--r--libs/audiographer/audiographer/general/silence_trimmer.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/libs/audiographer/audiographer/general/silence_trimmer.h b/libs/audiographer/audiographer/general/silence_trimmer.h
index 8a8dd920f5..4cb9f9a5d9 100644
--- a/libs/audiographer/audiographer/general/silence_trimmer.h
+++ b/libs/audiographer/audiographer/general/silence_trimmer.h
@@ -131,6 +131,9 @@ class LIBAUDIOGRAPHER_API SilenceTrimmer
throw Exception(*this, "process() after reacing end of input");
}
in_end = c.has_flag (ProcessContext<T>::EndOfInput);
+
+ // If adding to end, delay end of input propagation
+ if (add_to_end) { c.remove_flag(ProcessContext<T>::EndOfInput); }
framecnt_t frame_index = 0;
@@ -209,7 +212,8 @@ class LIBAUDIOGRAPHER_API SilenceTrimmer
// Finally, if in end, add silence to end
if (in_end && add_to_end) {
-
+ c.set_flag (ProcessContext<T>::EndOfInput);
+
if (debug_level (DebugVerbose)) {
debug_stream () << DebugUtils::demangled_name (*this) <<
" adding to end" << std::endl;