diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2020-01-22 15:00:58 -0700 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2020-01-23 14:25:38 -0700 |
commit | 24f8a90278e0578a755933a4361920ba7e040289 (patch) | |
tree | 80990589b28c7f876fb4370db6ec0e3c7f03541f /gtk2_ardour/editor_export_audio.cc | |
parent | c3f7940f25e703f8c6546203444d6cdf9f67692d (diff) |
use a better "legalize for path" method when exporting
The goal is to be compatible with filesystems everywhere
Diffstat (limited to 'gtk2_ardour/editor_export_audio.cc')
-rw-r--r-- | gtk2_ardour/editor_export_audio.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk2_ardour/editor_export_audio.cc b/gtk2_ardour/editor_export_audio.cc index ef55394253..cdde1c4157 100644 --- a/gtk2_ardour/editor_export_audio.cc +++ b/gtk2_ardour/editor_export_audio.cc @@ -247,11 +247,11 @@ Editor::write_region (string path, boost::shared_ptr<AudioRegion> region) for (cnt = 0; cnt < 999999; ++cnt) { if (nchans == 1) { snprintf (s, sizeof(s), "%s/%s_%" PRIu32 ".wav", sound_directory.c_str(), - legalize_for_path(region->name()).c_str(), cnt); + legalize_for_universal_path(region->name()).c_str(), cnt); } else { snprintf (s, sizeof(s), "%s/%s_%" PRIu32 "-%" PRId32 ".wav", sound_directory.c_str(), - legalize_for_path(region->name()).c_str(), cnt, n); + legalize_for_universal_path(region->name()).c_str(), cnt, n); } path = s; @@ -388,11 +388,11 @@ Editor::write_audio_range (AudioPlaylist& playlist, const ChanCount& count, list for (cnt = 0; cnt < 999999; ++cnt) { if (channels == 1) { snprintf (s, sizeof(s), "%s/%s_%" PRIu32 ".wav", sound_directory.c_str(), - legalize_for_path(playlist.name()).c_str(), cnt); + legalize_for_universal_path(playlist.name()).c_str(), cnt); } else { snprintf (s, sizeof(s), "%s/%s_%" PRIu32 "-%" PRId32 ".wav", sound_directory.c_str(), - legalize_for_path(playlist.name()).c_str(), cnt, n); + legalize_for_universal_path(playlist.name()).c_str(), cnt, n); } if (!Glib::file_test (s, Glib::FILE_TEST_EXISTS)) { |