13
0

Fix stacked region view

Previously this looped endlessly in RegionView::update_coverage_frame()
if the return value was undefined (or wrong time-domain) and smaller
than pos.
This commit is contained in:
Robin Gareus 2021-12-05 15:05:12 +01:00
parent eb0b3f253a
commit d29d40c1ec
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -2063,7 +2063,7 @@ Playlist::find_next_region_boundary (timepos_t const & pos, int dir)
RegionReadLock rlock (this);
timecnt_t closest = std::numeric_limits<timecnt_t>::max();
timepos_t ret;
timepos_t ret = Temporal::timepos_t::max (pos.time_domain ());
if (dir > 0) {
for (RegionList::iterator i = regions.begin (); i != regions.end (); ++i) {