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