Revert my revision 6996, which was wrong. Sources need to stay around in the session even when they are no longer being used as the write source for a Diskstream.
git-svn-id: svn://localhost/ardour2/branches/3.0@7000 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
@@ -924,7 +924,6 @@ MidiDiskstream::transport_stopped_wallclock (struct tm& /*when*/, time_t /*twhen
|
||||
if (_write_source) {
|
||||
|
||||
_write_source->mark_for_remove ();
|
||||
_write_source->drop_references ();
|
||||
_write_source.reset();
|
||||
}
|
||||
|
||||
|
||||
@@ -2427,7 +2427,6 @@ Session::add_source (boost::shared_ptr<Source> source)
|
||||
}
|
||||
|
||||
if (result.second) {
|
||||
source->DropReferences.connect_same_thread (*this, boost::bind (&Session::remove_source, this, boost::weak_ptr<Source> (source)));
|
||||
set_dirty();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user