From e88b207e20ef8dffe16b7f2da64389b15da9bcef Mon Sep 17 00:00:00 2001 From: GZharun Date: Mon, 16 Feb 2015 18:21:50 +0200 Subject: [PATCH] [Summary] Fixed issue when session loading hanged when session is being loaded with different sample rate --- libs/ardour/audioengine.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libs/ardour/audioengine.cc b/libs/ardour/audioengine.cc index b66fae16a9..db0c9a695f 100644 --- a/libs/ardour/audioengine.cc +++ b/libs/ardour/audioengine.cc @@ -837,7 +837,9 @@ AudioEngine::stop (bool for_latency) return -1; } - if (_session && _running) { + if (_session && _running && + (_session->state_of_the_state() & Session::Loading) == 0 && + (_session->state_of_the_state() & Session::Deletion) == 0) { // it's not a halt, but should be handled the same way: // disable record, stop transport and I/O processign but save the data. _session->engine_halted ();