summaryrefslogtreecommitdiff
path: root/orkbasecxx/AudioTape.cpp
diff options
context:
space:
mode:
authorGerald Begumisa <ben_g@users.sourceforge.net>2007-08-24 09:25:10 +0000
committerGerald Begumisa <ben_g@users.sourceforge.net>2007-08-24 09:25:10 +0000
commit9d30c0398e4447bf0b8b539caf738498fa45fb9f (patch)
tree3639e2a82ff4b69d1e9c3c7c6a813ca5b41763b2 /orkbasecxx/AudioTape.cpp
parentaf279c8ed90de99ee16a0e58d60ed023e4fd14b3 (diff)
Added check for AudioOutputPath in the file provided for transcoding so that the .wav file is placed in the same folder where the .mcf file resides
git-svn-id: https://oreka.svn.sourceforge.net/svnroot/oreka/trunk@473 09dcff7a-b715-0410-9601-b79a96267cd0
Diffstat (limited to 'orkbasecxx/AudioTape.cpp')
-rw-r--r--orkbasecxx/AudioTape.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/orkbasecxx/AudioTape.cpp b/orkbasecxx/AudioTape.cpp
index c54e8ca..c29f501 100644
--- a/orkbasecxx/AudioTape.cpp
+++ b/orkbasecxx/AudioTape.cpp
@@ -90,6 +90,10 @@ AudioTape::AudioTape(CStdString &portId, CStdString& file)
// Extract Path and Identifier
m_filePath = FilePath(file);
+ if(m_filePath.Find(CONFIG.m_audioOutputPath) >= 0) {
+ m_filePath = (m_filePath.Right(m_filePath.size() - 1 - CONFIG.m_audioOutputPath.size()));
+ }
+
CStdString basename = FileBaseName(file);
m_fileIdentifier = FileStripExtension(basename);