input/curl: trigger the condition variable in RequestDone()

Fixes deadlock on small responses.
This commit is contained in:
Max Kellermann 2015-06-19 16:45:38 +02:00
parent 3436a646b5
commit 947e902288
2 changed files with 3 additions and 0 deletions

1
NEWS
View File

@ -1,5 +1,6 @@
ver 0.19.10 (not yet released) ver 0.19.10 (not yet released)
* input * input
- curl: fix deadlock on small responses
- smbclient: fix DFF playback - smbclient: fix DFF playback
* encoder * encoder
- opus: fix bogus granulepos - opus: fix bogus granulepos

View File

@ -453,6 +453,8 @@ CurlInputStream::RequestDone(CURLcode result, long status)
SeekDone(); SeekDone();
else if (!IsReady()) else if (!IsReady())
SetReady(); SetReady();
else
cond.broadcast();
} }
static void static void