13
0

if a complete refill is called for, DiskReader cannot internal seek

This commit is contained in:
Paul Davis 2019-11-01 21:13:39 -06:00
parent b68a7fdf96
commit e4caef2c72

View File

@ -607,7 +607,7 @@ DiskReader::seek (samplepos_t sample, bool complete_refill)
DEBUG_TRACE (DEBUG::DiskIO, string_compose ("DiskReader::seek %s %ld -> %ld refill=%d\n", owner()->name().c_str(), playback_sample, sample, complete_refill)); DEBUG_TRACE (DEBUG::DiskIO, string_compose ("DiskReader::seek %s %ld -> %ld refill=%d\n", owner()->name().c_str(), playback_sample, sample, complete_refill));
const samplecnt_t distance = sample - playback_sample; const samplecnt_t distance = sample - playback_sample;
if (can_internal_playback_seek (distance)) { if (!complete_refill && can_internal_playback_seek (distance)) {
internal_playback_seek (distance); internal_playback_seek (distance);
return 0; return 0;
} }