#include "ardour/audio_region_importer.h"
#include "ardour/session.h"
-#include "ardour/playlist.h"
#include "ardour/playlist_factory.h"
#include "ardour/session_playlists.h"
}
name = rename_pair.second;
}
- xml_playlist.property ("name")->set_value (name);
+
+ XMLProperty* p = xml_playlist.property ("name");
+ if (!p) {
+ error << _("badly-formed XML in imported playlist") << endmsg;
+ return false;
+ }
+
+ p->set_value (name);
handler.add_name (name);
return true;
XMLProperty* out = (*it)->property("out");
if (!in || !out) {
error << string_compose (X_("AudioPlaylistImporter (%1): did not find the \"in\" or \"out\" property from a crossfade"), name) << endmsg;
+ continue; // or fatal?
}
handler.update_region_id (in);