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
This commit is contained in:
1
NEWS
1
NEWS
@@ -1,6 +1,7 @@
|
||||
ver 0.15.5 (2009/??/??)
|
||||
* input:
|
||||
- curl: don't abort if a packet has only metadata
|
||||
- curl: fixed endless loop during buffering
|
||||
* tags:
|
||||
- riff, aiff: fixed "limited range" gcc warning
|
||||
* decoder_thread: change the fallback decoder name to "mad"
|
||||
|
@@ -315,7 +315,7 @@ fill_buffer(struct input_stream *is)
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
return !g_queue_is_empty(c->buffers);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user