Commit 6037beab authored by Max Kellermann's avatar Max Kellermann

input/curl: fixed endless loop during buffering

When the connection is lost while buffering, the CURL input plugin may enter an endless loop, because it does not check the EOF condition. This patch makes fill_buffer() return success only if there's at least one buffer, which is enough of a check.x
parent 9a3f5ff9
ver 0.15.5 (2009/??/??) ver 0.15.5 (2009/??/??)
* input: * input:
- curl: don't abort if a packet has only metadata - curl: don't abort if a packet has only metadata
- curl: fixed endless loop during buffering
* tags: * tags:
- riff, aiff: fixed "limited range" gcc warning - riff, aiff: fixed "limited range" gcc warning
* decoder_thread: change the fallback decoder name to "mad" * decoder_thread: change the fallback decoder name to "mad"
......
...@@ -315,7 +315,7 @@ fill_buffer(struct input_stream *is) ...@@ -315,7 +315,7 @@ fill_buffer(struct input_stream *is)
return false; return false;
} }
return true; return !g_queue_is_empty(c->buffers);
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment