From 592496eb093ffa0ce19dcc189adb04ff602af582 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Mon, 30 Jul 2018 17:32:03 +0200 Subject: Fix "session dirty" flicker during session-setup. Loading a session includes setting the sync-source, this is queued to happen during process(), which may or may not be while Session::Loading is still set. This change only catches the common case: internal transport, no slave. --- libs/ardour/session_transport.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libs/ardour/session_transport.cc') diff --git a/libs/ardour/session_transport.cc b/libs/ardour/session_transport.cc index 1b17362946..b69565f384 100644 --- a/libs/ardour/session_transport.cc +++ b/libs/ardour/session_transport.cc @@ -1740,6 +1740,10 @@ Session::use_sync_source (Slave* new_slave) { /* Runs in process() context */ + if (!_slave && !new_slave) { + return; + } + bool non_rt_required = false; /* XXX this deletion is problematic because we're in RT context */ -- cgit v1.2.3