From 96ebac646d565ca8af0198f53c60b31d0f82fe94 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 11 Aug 2022 19:14:22 +0200 Subject: [PATCH] Ensure disk buffer refills happen in the right thread --- libs/ardour/disk_reader.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libs/ardour/disk_reader.cc b/libs/ardour/disk_reader.cc index a0b52a40b0..b102cb7bfd 100644 --- a/libs/ardour/disk_reader.cc +++ b/libs/ardour/disk_reader.cc @@ -1158,6 +1158,8 @@ DiskReader::refill_audio (Sample* sum_buffer, Sample* mixdown_buffer, float* gai return 0; } + assert (0 == strcmp ("butler", pthread_name ()) || _session.exporting ()); + int32_t ret = 0; samplecnt_t zero_fill; uint32_t chan_n;