summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2013-11-04 16:20:10 -0500
committerPaul Davis <paul@linuxaudiosystems.com>2013-11-04 16:20:10 -0500
commitfe6c5612a2c46d6dbad32517d487b120bb8b65c4 (patch)
treecdccfd3ab05566ead8b5e51acea03469a3d6661d /libs
parent6473cc7cb431abe71721341c550130e61cf64aa1 (diff)
parente24089ec1f2464ebca7cdd1f32f1b8818eb0a856 (diff)
Merge branch 'master' into cairocanvas
Diffstat (limited to 'libs')
-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 a653bfe215..d292515eb8 100644
--- a/libs/audiographer/audiographer/general/silence_trimmer.h
+++ b/libs/audiographer/audiographer/general/silence_trimmer.h
@@ -130,6 +130,9 @@ class 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;
@@ -208,7 +211,8 @@ class 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;