Add an assert and fix a crash on creating a new tape track.
git-svn-id: svn://localhost/ardour2/branches/3.0@6785 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
4d33dcd5d7
commit
40f93ba6e0
@ -346,6 +346,8 @@ AudioDiskstream::setup_destructive_playlist ()
|
||||
|
||||
/* a single full-sized region */
|
||||
|
||||
assert (!srcs.empty ());
|
||||
|
||||
PropertyList plist;
|
||||
plist.add (Properties::name, _name.val());
|
||||
plist.add (Properties::start, 0);
|
||||
@ -1968,7 +1970,7 @@ AudioDiskstream::reset_write_sources (bool mark_write_complete, bool /*force*/)
|
||||
}
|
||||
}
|
||||
|
||||
if (destructive()) {
|
||||
if (destructive() && !c->empty ()) {
|
||||
|
||||
/* we now have all our write sources set up, so create the
|
||||
playlist's single region.
|
||||
|
Loading…
Reference in New Issue
Block a user