second half of "bomb out if playlist construction from XML fails"

git-svn-id: svn://localhost/ardour2/branches/3.0@9759 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2011-06-22 20:06:10 +00:00
parent 2801e91fe2
commit 9687e8a667
7 changed files with 81 additions and 50 deletions

View file

@ -72,6 +72,8 @@ AudioPlaylistSource::AudioPlaylistSource (Session& s, const XMLNode& node)
if (set_state (node, Stateful::loading_state_version, false)) {
throw failed_constructor ();
}
AudioSource::_length = _playlist_length;
}
AudioPlaylistSource::~AudioPlaylistSource ()
@ -113,6 +115,9 @@ AudioPlaylistSource::set_state (const XMLNode& node, int version, bool with_desc
const XMLProperty* prop;
pair<framepos_t,framepos_t> extent = _playlist->get_extent();
cerr << "APS " << id() << " playlist ID " << _playlist->id() << " has " << _playlist->n_regions() << " playlist extents = " << extent.first << " .. " << extent.second << endl;
AudioSource::_length = extent.second - extent.first;
if ((prop = node.property (X_("channel"))) == 0) {