input/curl: wake up client thread after seek to end of file

Call SeekDone() to avoid the freeze bug.
This commit is contained in:
Max Kellermann 2017-01-09 18:08:33 +01:00
parent 904f83cd85
commit c3fc84de12
2 changed files with 4 additions and 1 deletions

1
NEWS
View File

@ -1,6 +1,7 @@
ver 0.20.1 (not yet released)
* input
- curl: fix crash bug
- curl: fix freeze bug
* decoder
- wavpack: fix crash bug
* storage

View File

@ -385,11 +385,13 @@ CurlInputStream::SeekInternal(offset_type new_offset)
FreeEasy();
offset = new_offset;
if (offset == size)
if (offset == size) {
/* seek to EOF: simulate empty result; avoid
triggering a "416 Requested Range Not Satisfiable"
response */
SeekDone();
return;
}
InitEasy();