From 4f33105ae08793ea2dc44d007cfe3b7977214ed5 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 26 Sep 2024 03:17:00 +0200 Subject: [PATCH] Process PostTransportOverWrite after all This is needed to properly decrement "should_do_transport_work". After a seek the DR:_pending_overwrite flag will have been cleared, so not much extra work happens here. --- libs/ardour/session_transport.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/libs/ardour/session_transport.cc b/libs/ardour/session_transport.cc index 47e92791cb..de2989c98f 100644 --- a/libs/ardour/session_transport.cc +++ b/libs/ardour/session_transport.cc @@ -1208,10 +1208,7 @@ Session::butler_transport_work (bool have_process_lock) non_realtime_locate (); } - /* if we just performed a locate, buffers have been refilled. - * This effectively has done the work of "PostTransportOverWrite" already. - */ - else if (ptw & PostTransportOverWrite) { + if (ptw & PostTransportOverWrite) { non_realtime_overwrite (on_entry, finished, (ptw & PostTransportLoopChanged)); if (!finished) { (void) PBD::atomic_dec_and_test (_butler->should_do_transport_work);