Don't bother even checking let alone doing internal seeks for zero distances
This commit is contained in:
parent
98a3a96d40
commit
27e45e9336
@ -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);
|
Evoral::Range<samplepos_t> loop_range (loc->start (), loc->end () - 1);
|
||||||
ss = loop_range.squish (playback_sample);
|
ss = loop_range.squish (playback_sample);
|
||||||
}
|
}
|
||||||
if (can_internal_playback_seek (ss - playback_sample)) {
|
if (ss != playback_sample) {
|
||||||
internal_playback_seek (ss - playback_sample);
|
if (can_internal_playback_seek (ss - playback_sample)) {
|
||||||
} else {
|
internal_playback_seek (ss - playback_sample);
|
||||||
disk_samples_to_consume = 0; /* will force an underrun below */
|
} else {
|
||||||
|
disk_samples_to_consume = 0; /* will force an underrun below */
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user