harden TempoMap::next_tempo_section () a bit.

This commit is contained in:
nick_m 2017-02-27 11:41:48 +11:00
parent ad84332661
commit 3f67f6d6a1

View File

@ -4288,6 +4288,10 @@ TempoMap::tempo_section_at_beat_locked (const Metrics& metrics, const double& be
TempoSection*
TempoMap::next_tempo_section (TempoSection* ts) const
{
if (!ts) {
return 0;
}
Glib::Threads::RWLock::ReaderLock lm (lock);
TempoSection* prev = 0;