mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 06:44:57 +01:00
harden TempoMap::next_tempo_section () a bit.
This commit is contained in:
parent
3a7bc1fd3f
commit
f3ada6f893
1 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue