13
0

Make TempoMap::framewalk_to_beats () more correct.

This commit is contained in:
nick_m 2016-05-30 01:23:19 +10:00
parent ecd93207ad
commit 1316fe6601

View File

@ -3571,7 +3571,9 @@ TempoMap::framepos_plus_bbt (framepos_t pos, BBT_Time op) const
Evoral::Beats
TempoMap::framewalk_to_beats (framepos_t pos, framecnt_t distance) const
{
return Evoral::Beats (beat_at_frame (pos + distance) - beat_at_frame (pos));
Glib::Threads::RWLock::ReaderLock lm (lock);
return Evoral::Beats (beat_at_frame_locked (_metrics, pos + distance) - beat_at_frame_locked (_metrics, pos));
}
struct bbtcmp {