mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-09 08:14:58 +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*
|
TempoSection*
|
||||||
TempoMap::next_tempo_section (TempoSection* ts) const
|
TempoMap::next_tempo_section (TempoSection* ts) const
|
||||||
{
|
{
|
||||||
|
if (!ts) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
Glib::Threads::RWLock::ReaderLock lm (lock);
|
Glib::Threads::RWLock::ReaderLock lm (lock);
|
||||||
|
|
||||||
TempoSection* prev = 0;
|
TempoSection* prev = 0;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue