Fix deadlock and remove debug message
get_extent() takes a RegionReadLock, but ::partition_internal already holds a RegionWriteLock (use ::_get_extent)
This commit is contained in:
parent
49aa046824
commit
d0f5fdb224
@ -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<Playlist>
|
||||
|
Loading…
Reference in New Issue
Block a user