fix up reload of existing session by avoiding stupid early return in a RegionFactory::create() method

git-svn-id: svn://localhost/ardour2/branches/3.0@6696 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2010-02-18 14:15:15 +00:00
parent ce7a5e1c9f
commit 6ccab0da0a

View file

@ -312,10 +312,6 @@ RegionFactory::create (SourceList& srcs, const XMLNode& node)
boost::shared_ptr<AudioRegion> arp (ar);
ret = boost::static_pointer_cast<Region> (arp);
boost::shared_ptr<Region> ret (ar);
return ret;
} else if (srcs[0]->type() == DataType::MIDI) {
MidiRegion* mr = new MidiRegion (srcs, node);