mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 00:34:59 +01:00
Bail out if Playlist cannot be created
This prevents later crashes. Tracks cannot exist without a playlist.
This commit is contained in:
parent
003e68edd2
commit
300063c8b9
1 changed files with 1 additions and 0 deletions
|
|
@ -484,6 +484,7 @@ SessionPlaylists::load (Session& session, const XMLNode& node)
|
|||
|
||||
if ((playlist = XMLPlaylistFactory (session, **niter)) == 0) {
|
||||
error << _("Session: cannot create Playlist from XML description.") << endmsg;
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue