13
0

Don't bother even checking let alone doing internal seeks for zero distances

This commit is contained in:
Paul Davis 2020-05-12 10:08:51 -06:00
parent 98a3a96d40
commit 27e45e9336

View File

@ -397,10 +397,12 @@ DiskReader::run (BufferSet& bufs, samplepos_t start_sample, samplepos_t end_samp
Evoral::Range<samplepos_t> loop_range (loc->start (), loc->end () - 1);
ss = loop_range.squish (playback_sample);
}
if (can_internal_playback_seek (ss - playback_sample)) {
internal_playback_seek (ss - playback_sample);
} else {
disk_samples_to_consume = 0; /* will force an underrun below */
if (ss != playback_sample) {
if (can_internal_playback_seek (ss - playback_sample)) {
internal_playback_seek (ss - playback_sample);
} else {
disk_samples_to_consume = 0; /* will force an underrun below */
}
}
}