From d0f5fdb22480ef4a95c6bb24c68f7b0ba40c92a3 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 8 Jun 2023 21:32:53 +0200 Subject: [PATCH] Fix deadlock and remove debug message get_extent() takes a RegionReadLock, but ::partition_internal already holds a RegionWriteLock (use ::_get_extent) --- libs/ardour/playlist.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/ardour/playlist.cc b/libs/ardour/playlist.cc index 852c664350..646d3b26ae 100644 --- a/libs/ardour/playlist.cc +++ b/libs/ardour/playlist.cc @@ -1177,7 +1177,7 @@ Playlist::partition_internal (timepos_t const & start, timepos_t const & end, bo /* keep track of any dead space at end (for pasting into Ripple or RippleAll mode) */ const timecnt_t wanted_length = start.distance (end); _end_space = wanted_length - _get_extent().first.distance (_get_extent().second); - cout << "PL: " << name() << " END SPACE: " << _end_space << " WANTED LEN: " << wanted_length << " EXT: " << _get_extent().first << " to " << get_extent().second << "\n"; + // cout << "PL: " << name() << " END SPACE: " << _end_space << " WANTED LEN: " << wanted_length << " EXT: " << _get_extent().first << " to " << _get_extent().second << "\n"; } std::shared_ptr