Blame SOURCES/0003-SimpleModule-set-output-chunk-framecount-after-pull.patch

a0a130
From 822b732fd31ffcb78f6920001e9b1fbd815fa712 Mon Sep 17 00:00:00 2001
a0a130
From: Wim Taymans <wtaymans@redhat.com>
a0a130
Date: Thu, 27 Sep 2018 12:11:12 +0200
a0a130
Subject: [PATCH 3/3] SimpleModule: set output chunk framecount after pull
a0a130
a0a130
After pulling the data, set the output chunk to the amount of
a0a130
frames we pulled so that the next module in the chain has the correct
a0a130
frame count.
a0a130
a0a130
Fixes #50 and #51
a0a130
---
a0a130
 libaudiofile/modules/SimpleModule.cpp | 1 +
a0a130
 1 file changed, 1 insertion(+)
a0a130
a0a130
diff --git a/libaudiofile/modules/SimpleModule.cpp b/libaudiofile/modules/SimpleModule.cpp
a0a130
index 2bae1eb..e87932c 100644
a0a130
--- a/libaudiofile/modules/SimpleModule.cpp
a0a130
+++ b/libaudiofile/modules/SimpleModule.cpp
a0a130
@@ -26,6 +26,7 @@
a0a130
 void SimpleModule::runPull()
a0a130
 {
a0a130
 	pull(m_outChunk->frameCount);
a0a130
+	m_outChunk->frameCount = m_inChunk->frameCount;
a0a130
 	run(*m_inChunk, *m_outChunk);
a0a130
 }
a0a130
 
a0a130
-- 
a0a130
2.17.1
a0a130