fix boolean logic when trying to avoid complete_refill heuristic

This commit is contained in:
Paul Davis 2020-03-31 21:14:07 -06:00
parent 6d0434a3c5
commit 1c82fc4879

View file

@ -762,8 +762,8 @@ DiskReader::seek (samplepos_t sample, bool complete_refill)
return 0;
}
if ((!_last_read_reversed && (_last_read_reversed != read_reversed)) ||
(!_last_read_loop && (_last_read_loop != read_loop))) {
if ((!_last_read_reversed || (_last_read_reversed != read_reversed)) ||
(!_last_read_loop || (_last_read_loop != read_loop))) {
/* We do these things only if we're still reading in the same
* direction we did last time.