13
0

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
This commit is contained in:
Carl Hetherington 2009-09-09 15:00:54 +00:00
parent d64faaa4b1
commit 22f1e2eb5f

View File

@ -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) { for (SourceList::iterator si = nsrcs.begin(); si != nsrcs.end(); ++si) {
boost::shared_ptr<AudioFileSource> afs = boost::dynamic_pointer_cast<AudioFileSource>(*si); boost::shared_ptr<AudioFileSource> afs = boost::dynamic_pointer_cast<AudioFileSource>(*si);
if (afs) { if (afs) {
afs->done_with_peakfile_writes ();
afs->update_header (region->position(), *now, xnow); afs->update_header (region->position(), *now, xnow);
afs->mark_immutable (); 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()); region_name = session.new_region_name (region->name());
} }
results.clear (); 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; return 0;
} }