mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-23 23:17:46 +01:00
Return playhead to last start position when aborting capture
This commit is contained in:
parent
98bf6497b8
commit
a86fed7180
1 changed files with 5 additions and 1 deletions
|
|
@ -558,7 +558,7 @@ Session::non_realtime_stop (bool abort, int on_entry, bool& finished)
|
||||||
}
|
}
|
||||||
|
|
||||||
bool const auto_return_enabled =
|
bool const auto_return_enabled =
|
||||||
(!config.get_external_sync() && config.get_auto_return());
|
(!config.get_external_sync() && (config.get_auto_return() || abort));
|
||||||
|
|
||||||
if (auto_return_enabled ||
|
if (auto_return_enabled ||
|
||||||
(ptw & PostTransportLocate) ||
|
(ptw & PostTransportLocate) ||
|
||||||
|
|
@ -618,6 +618,10 @@ Session::non_realtime_stop (bool abort, int on_entry, bool& finished)
|
||||||
_transport_frame = _last_roll_location;
|
_transport_frame = _last_roll_location;
|
||||||
do_locate = true;
|
do_locate = true;
|
||||||
}
|
}
|
||||||
|
} else if (abort) {
|
||||||
|
|
||||||
|
_transport_frame = _last_roll_location;
|
||||||
|
do_locate = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue