From f6ec3828edfbc373a66f256d4497e9b6f166fe33 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 1 Sep 2025 11:14:25 -0600 Subject: [PATCH] temporal: fix local tempo map depth mgmt when starting a local tempo map --- libs/temporal/tempo.cc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/libs/temporal/tempo.cc b/libs/temporal/tempo.cc index f75e4c6cb8..222c08fe4e 100644 --- a/libs/temporal/tempo.cc +++ b/libs/temporal/tempo.cc @@ -5392,10 +5392,6 @@ ScopedTempoMapOwner::start_local_tempo_map (std::shared_ptr * ::in(), which include incrementing the depth and setting the * thread-local tempo map pointer. * - * The caller should have placed an EC_LOCAL_TEMPO_SCOPE macro before - * the call to this method, so that when the caller returns, we will - * call ::out() and decrement the depth back to zero. - * * Subsequent to that, all later in() and out() calls will install and * uninstall the local tempo map as the depth transitions from and to * zero, and will maintain the depth counter appropriately. @@ -5405,7 +5401,7 @@ ScopedTempoMapOwner::start_local_tempo_map (std::shared_ptr DEBUG_TRACE (PBD::DEBUG::ScopedTempoMap, string_compose ("%1: starting local tempo scope\n", scope_name())); map->set_scope_owner (*this); _local_tempo_map = map; - local_tempo_map_depth = 1; + local_tempo_map_depth = 0; Temporal::TempoMap::set (_local_tempo_map); }