fix over-zealous optimization in tempo map, caused crash
git-svn-id: svn://localhost/ardour2/branches/3.0@11168 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
862299120c
commit
9829a69549
@ -732,12 +732,6 @@ TempoMap::recompute_map (bool reassign_tempo_bbt, framepos_t end)
|
||||
BBT_Time current;
|
||||
Metrics::iterator next_metric;
|
||||
|
||||
if (end == 0) {
|
||||
/* silly call from Session::process() during startup
|
||||
*/
|
||||
return;
|
||||
}
|
||||
|
||||
if (end < 0) {
|
||||
|
||||
if (_map.empty()) {
|
||||
@ -815,6 +809,12 @@ TempoMap::recompute_map (bool reassign_tempo_bbt, framepos_t end)
|
||||
DEBUG_TRACE (DEBUG::TempoMath, string_compose ("Add first bar at 1|1 @ %2\n", current.bars, current_frame));
|
||||
_map.push_back (BBTPoint (*meter, *tempo,(framepos_t) llrint(current_frame), 1, 1));
|
||||
|
||||
if (end == 0) {
|
||||
/* silly call from Session::process() during startup
|
||||
*/
|
||||
return;
|
||||
}
|
||||
|
||||
_extend_map (tempo, meter, next_metric, current, current_frame, end);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user