diff options
author | Henri Herscher <henri@oreka.org> | 2006-05-05 19:29:43 +0000 |
---|---|---|
committer | Henri Herscher <henri@oreka.org> | 2006-05-05 19:29:43 +0000 |
commit | a279a59505abff5d2c0802feeeceeb4f08ee067c (patch) | |
tree | 6bda4d2d70ca8ccff7210424256e6c5b7d490cc6 /orkaudio/Reporting.cpp | |
parent | 8267f45f799c2c976534676ed03b5ab315382873 (diff) |
Tapes now only reported if it was possible to transcode them.
git-svn-id: https://oreka.svn.sourceforge.net/svnroot/oreka/trunk@224 09dcff7a-b715-0410-9601-b79a96267cd0
Diffstat (limited to 'orkaudio/Reporting.cpp')
-rw-r--r-- | orkaudio/Reporting.cpp | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/orkaudio/Reporting.cpp b/orkaudio/Reporting.cpp index 308b58c..13d9c95 100644 --- a/orkaudio/Reporting.cpp +++ b/orkaudio/Reporting.cpp @@ -81,9 +81,21 @@ void Reporting::ThreadHandler(void *args) success = true; if(tr.m_deleteTape) { - LOG4CXX_INFO(LOG.reportingLog, "Registered tape for removal: " + audioTapeRef->GetIdentifier()); + //LOG4CXX_INFO(LOG.reportingLog, "Registered tape for removal: " + audioTapeRef->GetIdentifier()); + //BatchProcessing::GetInstance()->TapeDropRegistration(tapeFilename); + CStdString tapeFilename = audioTapeRef->GetFilename(); - BatchProcessing::GetInstance()->TapeDropRegistration(tapeFilename); + + CStdString absoluteFilename = CONFIG.m_audioOutputPath + "/" + tapeFilename; + if (ACE_OS::unlink((PCSTR)absoluteFilename) == 0) + { + LOG4CXX_INFO(LOG.reportingLog, "Deleted tape: " + tapeFilename); + } + else + { + LOG4CXX_DEBUG(LOG.reportingLog, "Could not delete tape: " + tapeFilename); + } + } } else |