From d71b3100d8b77bb25e40d4f499419af2485df22c Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 22 Nov 2021 10:28:13 -0700 Subject: [PATCH] temporal: handle negative positional values that somehow appear in older sessions --- libs/temporal/timeline.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/temporal/timeline.cc b/libs/temporal/timeline.cc index 8d6aa88f78..d4aa523230 100644 --- a/libs/temporal/timeline.cc +++ b/libs/temporal/timeline.cc @@ -873,7 +873,8 @@ timepos_t::string_to (std::string const & str) int64_t ticks; Beats beats; - if (isdigit (str[0])) { + if (isdigit (str[0]) || (str[0] == '-' && str.length() > 1)) { + /* old school position format: we assume samples */ std::stringstream ss (str); ss >> sm;