summaryrefslogtreecommitdiff
path: root/libs/ardour/filesource.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libs/ardour/filesource.cc')
-rw-r--r--libs/ardour/filesource.cc9
1 files changed, 8 insertions, 1 deletions
diff --git a/libs/ardour/filesource.cc b/libs/ardour/filesource.cc
index ad8979173e..bb14d31757 100644
--- a/libs/ardour/filesource.cc
+++ b/libs/ardour/filesource.cc
@@ -265,7 +265,14 @@ FileSource::init (string pathstr, bool must_exist, jack_nframes_t rate)
if (new_file) {
- is_bwf = Config->get_native_format_is_bwf ();
+ switch (Config->get_native_file_header_format()) {
+ case BWF:
+ is_bwf = true;
+ break;
+ default:
+ is_bwf = false;
+ break;
+ }
if (fill_header (rate)) {
error << string_compose (_("FileSource: cannot write header in %1"), _path) << endmsg;