summaryrefslogtreecommitdiff
path: root/libs/ardour/tempo.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2019-08-20 04:29:06 +0200
committerRobin Gareus <robin@gareus.org>2019-08-20 04:29:06 +0200
commit114b5088c76f2a0d9aecc3beafd993b0cb916ae2 (patch)
tree51c4b80ecb77a43e15d8dc00c43f8e902cd35486 /libs/ardour/tempo.cc
parent6227dd5b04e394ea2afda3ed7916b40c28706d2f (diff)
There is always at least a tempo and meter section
Diffstat (limited to 'libs/ardour/tempo.cc')
-rw-r--r--libs/ardour/tempo.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/libs/ardour/tempo.cc b/libs/ardour/tempo.cc
index e5671a01c4..ce629df3e0 100644
--- a/libs/ardour/tempo.cc
+++ b/libs/ardour/tempo.cc
@@ -4258,6 +4258,12 @@ TempoMap::tempo_section_at_beat_locked (const Metrics& metrics, const double& be
}
}
+
+ if (prev_t == 0) {
+ fatal << endmsg;
+ abort(); /*NOTREACHED*/
+ }
+
return *prev_t;
}
@@ -4435,6 +4441,12 @@ TempoMap::meter_section_at_beat_locked (const Metrics& metrics, const double& be
}
}
+
+ if (prev_m == 0) {
+ fatal << endmsg;
+ abort(); /*NOTREACHED*/
+ }
+
return *prev_m;
}