13
0

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.
This commit is contained in:
Robin Gareus 2024-09-26 03:17:00 +02:00
parent e1f465a952
commit 4f33105ae0
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -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);