13
0

Fix creating session from template

bug was introduced in a36ddb72dd
This commit is contained in:
Robin Gareus 2023-07-10 16:44:46 +02:00
parent 7f653de3e2
commit 76ba032d3c
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -1749,10 +1749,11 @@ Session::set_state (const XMLNode& node, int version)
* Session::immediately_post_engine
*/
}
} else {
error << _("Session: XML state has no sample-rate ") << endmsg;
goto out;
/* creating session from template */
assert (_base_sample_rate > 0 && AudioEngine::instance()->running ());
/* required to convert positions during session load */
Temporal::set_sample_rate (_base_sample_rate);
}
/* need the tempo map setup ASAP */