13
0

Allow CD marker at session start #8029

This removes the restriction to not place a CD marker at
session start.

This helps in getting rid of some inconsistencies. Also,
the previous policy didn't help in enforcing the Red Book standard.

Two seconds of pregap are implicitly created by DDP mastering tools
and CD burning software.
This commit is contained in:
Mister Benjamin 2020-05-21 16:34:39 +02:00 committed by Robin Gareus
parent a5ec4fa3ac
commit 4c8b9daa0f
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -213,12 +213,6 @@ Location::set_start (samplepos_t s, bool force, bool allow_beat_recompute, const
}
}
if (is_cd_marker()) {
if (s <= _session.current_start_sample()) {
return -1;
}
}
if (is_mark()) {
if (_start != s) {
_start = s;
@ -470,14 +464,6 @@ Location::set_hidden (bool yn, void*)
void
Location::set_cd (bool yn, void*)
{
// XXX this really needs to be session start
// but its not available here - leave to GUI
if (yn && _start == 0) {
error << _("You cannot put a CD marker at this position") << endmsg;
return;
}
if (set_flag_internal (yn, IsCDMarker)) {
flags_changed (this); /* EMIT SIGNAL */
FlagsChanged ();