summaryrefslogtreecommitdiff
path: root/gtk2_ardour/export_dialog.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2008-11-22 22:58:17 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2008-11-22 22:58:17 +0000
commit0627e3f9768f4e19db37857419b10675751ca021 (patch)
treeae68ece74038937b8703dcf15b20e690d8c39aba /gtk2_ardour/export_dialog.cc
parent495edc3ed9944e50ac1223e789c74781d4715e08 (diff)
don't set up dir name incorrectly for range export
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@4235 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/export_dialog.cc')
-rw-r--r--gtk2_ardour/export_dialog.cc53
1 files changed, 27 insertions, 26 deletions
diff --git a/gtk2_ardour/export_dialog.cc b/gtk2_ardour/export_dialog.cc
index b0aa6b17d6..142f425f80 100644
--- a/gtk2_ardour/export_dialog.cc
+++ b/gtk2_ardour/export_dialog.cc
@@ -949,34 +949,37 @@ ExportDialog::do_export ()
return;
}
- /* maybe add suffix */
+ if (!wants_dir()) {
- int file_format = sndfile_header_format_from_string (header_format_combo.get_active_text ());
-
- if ((file_format & SF_FORMAT_TYPEMASK) == SF_FORMAT_WAV) {
- if (filepath.find (".wav") != filepath.length() - 4) {
- filepath += ".wav";
- }
- } else if ((file_format & SF_FORMAT_TYPEMASK) == SF_FORMAT_AIFF) {
- if (filepath.find (".aiff") != filepath.length() - 5) {
- filepath += ".aiff";
- }
- } else if ((file_format & SF_FORMAT_TYPEMASK) == SF_FORMAT_W64) {
- if (filepath.find (".w64") != filepath.length() - 5) {
- filepath += ".w64";
- }
- } else if ((file_format & SF_FORMAT_TYPEMASK) == SF_FORMAT_FLAC) {
- if (filepath.find (".flac") != filepath.length() - 5) {
- filepath += ".flac";
- }
- } else if ((file_format & SF_FORMAT_TYPEMASK) == SF_FORMAT_CAF) {
- if (filepath.find (".caf") != filepath.length() - 4) {
- filepath += ".caf";
+ /* maybe add suffix */
+
+ int file_format = sndfile_header_format_from_string (header_format_combo.get_active_text ());
+
+ if ((file_format & SF_FORMAT_TYPEMASK) == SF_FORMAT_WAV) {
+ if (filepath.find (".wav") != filepath.length() - 4) {
+ filepath += ".wav";
+ }
+ } else if ((file_format & SF_FORMAT_TYPEMASK) == SF_FORMAT_AIFF) {
+ if (filepath.find (".aiff") != filepath.length() - 5) {
+ filepath += ".aiff";
+ }
+ } else if ((file_format & SF_FORMAT_TYPEMASK) == SF_FORMAT_W64) {
+ if (filepath.find (".w64") != filepath.length() - 5) {
+ filepath += ".w64";
+ }
+ } else if ((file_format & SF_FORMAT_TYPEMASK) == SF_FORMAT_FLAC) {
+ if (filepath.find (".flac") != filepath.length() - 5) {
+ filepath += ".flac";
+ }
+ } else if ((file_format & SF_FORMAT_TYPEMASK) == SF_FORMAT_CAF) {
+ if (filepath.find (".caf") != filepath.length() - 4) {
+ filepath += ".caf";
+ }
}
+
+ /* others ? */
}
- /* others ? */
-
if(!is_filepath_valid(filepath)){
return;
}
@@ -1012,8 +1015,6 @@ ExportDialog::do_export ()
/* if not stopped early and not SAE, ask for money, maybe */
- cerr << "At end, spec.stop == " << spec.stop << endl;
-
if (!spec.stop && !Profile->get_sae()) {
NagScreen* ns = NagScreen::maybe_nag (_("export"));