new port design, probably about 90% done (i.e it mostly works and this commit is...
[ardour.git] / libs / ardour / source_factory.cc
index 3a657bc0e2fdf1b2eb23fcbf4b52c3c3928b756a..89d4e3ed79fb3143547c95d6ef5be76048ea2522 100644 (file)
@@ -250,7 +250,7 @@ SourceFactory::createWritable (DataType type, Session& s, std::string path, bool
                                                (destructive ? AudioFileSource::Flag (SndFileSource::default_writable_flags | AudioFileSource::Destructive) :
                                                 SndFileSource::default_writable_flags)));      
 
-               if (setup_peakfile (ret, false)) {
+               if (setup_peakfile (ret, defer_peaks)) {
                        return boost::shared_ptr<Source>();
                }