From 06dee15a18b033b9634f0917a2566ca7758a9297 Mon Sep 17 00:00:00 2001 From: Johannes Mueller Date: Thu, 2 Apr 2020 18:39:46 +0200 Subject: [PATCH] Emit Locate() in ::locate() even if we are not synced_to_engine() This reverts 05c77db7739c (revert necessary due to 4637c49838a8) Since 4637c49838a8 we no longer emit Located() in ::backend_sync_callback(). Therefore we must emit Located() in ::locate() even if we are synced_to_engine(). Otherwise the playhead is not updated when synced_to_engine() in some circumstances. --- libs/ardour/session_transport.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libs/ardour/session_transport.cc b/libs/ardour/session_transport.cc index 981c9e99f3..f136eebc5d 100644 --- a/libs/ardour/session_transport.cc +++ b/libs/ardour/session_transport.cc @@ -362,9 +362,8 @@ Session::locate (samplepos_t target_sample, bool with_roll, bool with_flush, boo } _last_roll_location = _last_roll_or_reversal_location = _transport_sample; - if (!synced_to_engine () || _transport_sample == _engine.transport_sample ()) { - Located (); /* EMIT SIGNAL */ - } + + Located (); /* EMIT SIGNAL */ } void