mirror of
https://github.com/clangen/musikcube.git
synced 2024-11-19 20:13:36 +00:00
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:
parent
7fd31d5611
commit
a5d3335d05
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user