X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fardour%2Ffilter.cc;fp=libs%2Fardour%2Ffilter.cc;h=2ff93316f316392880f9c605d373d30fe9bf8523;hb=ce7a5e1c9fa3edf2d9cc66875505e402a0aaa6f6;hp=eab27b4ce07fcb31359deca6607a088e39d97bd6;hpb=cdcc4d3720d8168a158f6a5a5f23e9ce981bc68c;p=ardour.git diff --git a/libs/ardour/filter.cc b/libs/ardour/filter.cc index eab27b4ce0..2ff93316f3 100644 --- a/libs/ardour/filter.cc +++ b/libs/ardour/filter.cc @@ -120,9 +120,15 @@ Filter::finish (boost::shared_ptr region, SourceList& nsrcs, string regi } results.clear (); - boost::shared_ptr r = RegionFactory::create (nsrcs, 0, region->length(), region_name, 0, - Region::Flag (Region::WholeFile|Region::DefaultFlags)); - r->set_position (region->position(), 0); + PropertyList plist; + + plist.add (Properties::start, 0); + plist.add (Properties::length, region->length()); + plist.add (Properties::name, region_name); + plist.add (Properties::whole_file, true); + plist.add (Properties::position, region->position()); + + boost::shared_ptr r = RegionFactory::create (nsrcs, plist); boost::shared_ptr audio_region = boost::dynamic_pointer_cast (region); boost::shared_ptr audio_r = boost::dynamic_pointer_cast (r);