Fixed bug where seeking forward in a (cached) HttpDataStream response

didn't work properly. This same bug may also cause weird behaviors
during playback if the engine probes beyond the end of the file, then
attempts to rewind the read head to recover
This commit is contained in:
casey langen 2020-10-16 13:49:09 -07:00
parent 7fd31d5611
commit a5d3335d05

View File

@ -196,7 +196,9 @@ class FileReadStream {
this->underflow.wait(lock);
}
if (this->interrupted || this->Eof()) {
/* if we've been interrupted, or we know we're at EOF and have been asked
to read beyond it. */
if (this->interrupted || (position >= this->Position() && this->Eof())) {
return false;
}