do not route AutomationControl changes to an RT thread if we are loading a session

This commit is contained in:
Paul Davis
2016-04-13 17:42:07 -04:00
parent 4a30e1f4c8
commit 7d493b091a

View File

@@ -280,7 +280,7 @@ AutomationControl::set_group (boost::shared_ptr<ControlGroup> cg)
bool
AutomationControl::check_rt (double val, Controllable::GroupControlDisposition gcd)
{
if ((flags() & Controllable::RealTime) && !AudioEngine::instance()->in_process_thread()) {
if (!_session.loading() && (flags() & Controllable::RealTime) && !AudioEngine::instance()->in_process_thread()) {
/* queue change in RT context */
std::cerr << "::set_value (" << val << ", " << enum_2_string (gcd) << ") called for " << enum_2_string ((AutomationType) _parameter.type()) << ", queueing in RT context\n";
_session.set_control (shared_from_this(), val, gcd);