Bail out if export cannot be started

This commit is contained in:
Robin Gareus
2020-12-08 01:09:19 +01:00
parent f8b5424d9f
commit 062aeb0262
3 changed files with 11 additions and 8 deletions

View File

@@ -178,7 +178,10 @@ static int export_session (Session *session,
/* do audio export */
fmp->set_soundcloud_upload(false);
session->get_export_handler()->add_export_config (tsp, ccp, fmp, fnp, b);
session->get_export_handler()->do_export();
if (0 != session->get_export_handler()->do_export()) {
return -1;
}
boost::shared_ptr<ARDOUR::ExportStatus> status = session->get_export_status ();