mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 22:36:33 +00:00
souphttpsrc: do not emit error when connection with unknown size ends
Commit 46fd12ae5e
introduced connection
recovery. But when server does not specify content-size,
souphttpsrc tries to reconnect even after regular end of stream.
Http server replies with SOUP_STATUS_REQUESTED_RANGE_NOT_SATISFIABLE
but souphttpsrc still emits error instead of EOS.
https://bugzilla.gnome.org/show_bug.cgi?id=724717
Signed-off-by: Branislav Katreniak <bkatreniak@nuvotechnologies.com>
This commit is contained in:
parent
02e59756a9
commit
6f1d4da8b4
1 changed files with 1 additions and 1 deletions
|
@ -1287,7 +1287,7 @@ gst_soup_http_src_parse_status (SoupMessage * msg, GstSoupHTTPSrc * src)
|
|||
* a body message, requests that go beyond the content limits will result
|
||||
* in an error. Here we convert those to EOS */
|
||||
if (msg->status_code == SOUP_STATUS_REQUESTED_RANGE_NOT_SATISFIABLE &&
|
||||
src->have_body && src->have_size) {
|
||||
src->have_body && !src->have_size) {
|
||||
GST_DEBUG_OBJECT (src, "Requested range out of limits and received full "
|
||||
"body, returning EOS");
|
||||
src->ret = GST_FLOW_EOS;
|
||||
|
|
Loading…
Reference in a new issue