summaryrefslogtreecommitdiff
path: root/libs/ardour/filter.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2009-09-09 15:00:54 +0000
committerCarl Hetherington <carl@carlh.net>2009-09-09 15:00:54 +0000
commit22f1e2eb5f925e3ad3edad1a786208a598668f3b (patch)
treeb36ad8b9360370b944b39edecf7f2368c7e09504 /libs/ardour/filter.cc
parentd64faaa4b1c07c20bf575396b743753a7a043d52 (diff)
Apply olaf's patch from mantis 2844 to fix that. Also fix non-appearing peakfiles on reversed regions.
git-svn-id: svn://localhost/ardour2/branches/3.0@5644 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/filter.cc')
-rw-r--r--libs/ardour/filter.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/libs/ardour/filter.cc b/libs/ardour/filter.cc
index 5922936b85..afaf20dc4b 100644
--- a/libs/ardour/filter.cc
+++ b/libs/ardour/filter.cc
@@ -97,6 +97,7 @@ Filter::finish (boost::shared_ptr<Region> region, SourceList& nsrcs, string regi
for (SourceList::iterator si = nsrcs.begin(); si != nsrcs.end(); ++si) {
boost::shared_ptr<AudioFileSource> afs = boost::dynamic_pointer_cast<AudioFileSource>(*si);
if (afs) {
+ afs->done_with_peakfile_writes ();
afs->update_header (region->position(), *now, xnow);
afs->mark_immutable ();
}
@@ -118,8 +119,11 @@ Filter::finish (boost::shared_ptr<Region> region, SourceList& nsrcs, string regi
region_name = session.new_region_name (region->name());
}
results.clear ();
- results.push_back (RegionFactory::create (nsrcs, 0, region->length(), region_name, 0,
- Region::Flag (Region::WholeFile|Region::DefaultFlags)));
+
+ boost::shared_ptr<Region> r = RegionFactory::create (nsrcs, 0, region->length(), region_name, 0,
+ Region::Flag (Region::WholeFile|Region::DefaultFlags));
+ r->set_position (region->position(), 0);
+ results.push_back (r);
return 0;
}