Fix Region Export alignment

Session::start_audio_export correctly sets preroll offset
depending on export-mode. A later locate must not change it.
This commit is contained in:
Robin Gareus 2023-05-27 02:21:40 +02:00
parent d5cc5b0586
commit b6428b421f
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04

View file

@ -203,7 +203,7 @@ Session::locate (samplepos_t target_sample, bool for_loop_end, bool force, bool
// thread(s?) can restart.
_seek_counter.fetch_add (1);
_last_roll_or_reversal_location = target_sample;
if (!for_loop_end) {
if (!for_loop_end && !_exporting) {
_remaining_latency_preroll = worst_latency_preroll_buffer_size_ceil ();
}
timecode_time(_transport_sample, transmitting_timecode_time); // XXX here?