input/curl: wake up client thread after seek to end of file
Call SeekDone() to avoid the freeze bug.
This commit is contained in:
parent
904f83cd85
commit
c3fc84de12
1
NEWS
1
NEWS
|
@ -1,6 +1,7 @@
|
||||||
ver 0.20.1 (not yet released)
|
ver 0.20.1 (not yet released)
|
||||||
* input
|
* input
|
||||||
- curl: fix crash bug
|
- curl: fix crash bug
|
||||||
|
- curl: fix freeze bug
|
||||||
* decoder
|
* decoder
|
||||||
- wavpack: fix crash bug
|
- wavpack: fix crash bug
|
||||||
* storage
|
* storage
|
||||||
|
|
|
@ -385,11 +385,13 @@ CurlInputStream::SeekInternal(offset_type new_offset)
|
||||||
FreeEasy();
|
FreeEasy();
|
||||||
|
|
||||||
offset = new_offset;
|
offset = new_offset;
|
||||||
if (offset == size)
|
if (offset == size) {
|
||||||
/* seek to EOF: simulate empty result; avoid
|
/* seek to EOF: simulate empty result; avoid
|
||||||
triggering a "416 Requested Range Not Satisfiable"
|
triggering a "416 Requested Range Not Satisfiable"
|
||||||
response */
|
response */
|
||||||
|
SeekDone();
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
InitEasy();
|
InitEasy();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue