summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenri Herscher <henri@oreka.org>2008-07-24 17:07:37 +0000
committerHenri Herscher <henri@oreka.org>2008-07-24 17:07:37 +0000
commite76b23977ac289192d38b15ca90025eea0816f73 (patch)
tree87554bfecc4ff6d6765ce7420563313041e554dd
parentec1349898f3084a594ee1855fa2a4fafa455e9f3 (diff)
Only tapes that have at least 1 output sample in the transcoding process are now reported as 'ready' by reporting. Also, mcf file is not deleted anymore by default when transcoding returns 0 output sample.
git-svn-id: https://oreka.svn.sourceforge.net/svnroot/oreka/trunk@554 09dcff7a-b715-0410-9601-b79a96267cd0
-rw-r--r--orkbasecxx/BatchProcessing.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/orkbasecxx/BatchProcessing.cpp b/orkbasecxx/BatchProcessing.cpp
index e66c426..02c73df 100644
--- a/orkbasecxx/BatchProcessing.cpp
+++ b/orkbasecxx/BatchProcessing.cpp
@@ -360,14 +360,22 @@ void BatchProcessing::ThreadHandler(void *args)
}
}
- if(CONFIG.m_deleteNativeFile)
+ if(CONFIG.m_deleteNativeFile && numSamplesOut)
{
fileRef->Delete();
LOG4CXX_INFO(LOG.batchProcessingLog, "[" + trackingId + "] Th" + threadIdString + " deleting native: " + audioTapeRef->GetIdentifier());
}
+ else if(CONFIG.m_deleteFailedCaptureFile)
+ {
+ fileRef->Delete();
+ LOG4CXX_INFO(LOG.batchProcessingLog, "[" + trackingId + "] Th" + threadIdString + " deleting native that could not be transcoded: " + audioTapeRef->GetIdentifier());
+ }
// Finished processing the tape, pass on to next processor
- pBatchProcessing->RunNextProcessor(audioTapeRef);
+ if(numSamplesOut)
+ {
+ pBatchProcessing->RunNextProcessor(audioTapeRef);
+ }
}
}
catch (CStdString& e)