diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2020-03-28 10:58:33 -0600 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2020-03-28 10:58:45 -0600 |
commit | 82eba76c8f61573ea27a8a584a103b14746f47f7 (patch) | |
tree | 32860350fdf321ec176ea83457c18433f734465f | |
parent | ead883302fe800aec38bb3537d948b8c54a992ea (diff) |
prevent CD markers from being placed at or before session start (#7942)
-rw-r--r-- | libs/ardour/location.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libs/ardour/location.cc b/libs/ardour/location.cc index de70abb6c5..221bb05020 100644 --- a/libs/ardour/location.cc +++ b/libs/ardour/location.cc @@ -213,6 +213,13 @@ Location::set_start (samplepos_t s, bool force, bool allow_beat_recompute, const } } + if (is_cd_marker()) { + if (s <= _session.current_start_sample()) { + info << _("You cannot put a CD marker at the start of the session") << endmsg; + return -1; + } + } + if (is_mark()) { if (_start != s) { _start = s; |