summaryrefslogtreecommitdiff
path: root/orkbasecxx/BatchProcessing.cpp
diff options
context:
space:
mode:
authorHenri Herscher <henri@oreka.org>2007-11-23 19:53:25 +0000
committerHenri Herscher <henri@oreka.org>2007-11-23 19:53:25 +0000
commitf4b9b1d0e2e57532f6d838d2a5e88f8852fb5888 (patch)
tree462a0ae3070604d2618c4498564d847407447816 /orkbasecxx/BatchProcessing.cpp
parent85510faf825618fb0a69e0fc3515e578cee939df (diff)
The RTP mixer is now properly flushed at the end of transcoding. Wav files are now sometimes a bit longer thanks to this.
git-svn-id: https://oreka.svn.sourceforge.net/svnroot/oreka/trunk@508 09dcff7a-b715-0410-9601-b79a96267cd0
Diffstat (limited to 'orkbasecxx/BatchProcessing.cpp')
-rw-r--r--orkbasecxx/BatchProcessing.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/orkbasecxx/BatchProcessing.cpp b/orkbasecxx/BatchProcessing.cpp
index 42d646a..7812207 100644
--- a/orkbasecxx/BatchProcessing.cpp
+++ b/orkbasecxx/BatchProcessing.cpp
@@ -305,10 +305,12 @@ void BatchProcessing::ThreadHandler(void *args)
stopChunk->GetDetails()->m_marker = MEDIA_CHUNK_EOS_MARKER;
filter->AudioChunkIn(stopChunk);
filter->AudioChunkOut(tmpChunkRef);
- outFileRef->WriteChunk(tmpChunkRef);
- if(tmpChunkRef.get())
+
+ while(tmpChunkRef.get())
{
+ outFileRef->WriteChunk(tmpChunkRef);
numSamplesOut += tmpChunkRef->GetNumSamples();
+ filter->AudioChunkOut(tmpChunkRef);
}
}
@@ -370,3 +372,4 @@ void BatchProcessing::ThreadHandler(void *args)
}
+