diff options
author | Henri Herscher <henri@oreka.org> | 2008-07-24 17:07:37 +0000 |
---|---|---|
committer | Henri Herscher <henri@oreka.org> | 2008-07-24 17:07:37 +0000 |
commit | e76b23977ac289192d38b15ca90025eea0816f73 (patch) | |
tree | 87554bfecc4ff6d6765ce7420563313041e554dd | |
parent | ec1349898f3084a594ee1855fa2a4fafa455e9f3 (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.cpp | 12 |
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) |