summaryrefslogtreecommitdiff
path: root/libs/ardour/export_handler.cc
diff options
context:
space:
mode:
authorJohannes Mueller <github@johannes-mueller.org>2015-04-15 19:55:48 +0200
committerRobin Gareus <robin@gareus.org>2015-04-21 18:15:29 +0200
commit9ba98ae2d340fd22d5a8a3995feb7045d7b729d5 (patch)
treea94b2e914ef1c8849bed9ab5fa455151c6ee2095 /libs/ardour/export_handler.cc
parentca8ff9542090d02d61052b80467f02e9a9cab3bb (diff)
Remove filename extension for chapter mark file
The tool mp4chaps by the following command $ mp4chaps -i test.mp4 looks for the file "test.chapters.txt" to read the chapter marks from. So removing the original file name extension (e.g. wav or flac) makes it slightly more convenient for the user.
Diffstat (limited to 'libs/ardour/export_handler.cc')
-rw-r--r--libs/ardour/export_handler.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/libs/ardour/export_handler.cc b/libs/ardour/export_handler.cc
index bcc2783104..f30d5550b7 100644
--- a/libs/ardour/export_handler.cc
+++ b/libs/ardour/export_handler.cc
@@ -520,7 +520,10 @@ ExportHandler::get_cd_marker_filename(std::string filename, CDMarkerFormat forma
case CDMarkerCUE:
return filename + ".cue";
case MP4Chaps:
- return filename + ".chapters.txt";
+ {
+ unsigned lastdot = filename.find_last_of('.');
+ return filename.substr(0,lastdot) + ".chapters.txt";
+ }
default:
return filename + ".marker"; // Should not be reached when actually creating a file
}