diff options
author | Branislav Katreniak <bkatreniak@nuvotechnologies.com> | 2014-02-19 15:19:30 +0100 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2014-02-19 16:59:16 +0100 |
commit | 6f1d4da8b43b2392a0c7df3feb2daaa7e7c45964 (patch) | |
tree | 2f3dbc20485d61e0a33266f25992d35f61db275c /ext | |
parent | 02e59756a9d91da62a94ae44480b262f1e6205d6 (diff) |
souphttpsrc: do not emit error when connection with unknown size ends
Commit 46fd12ae5ec53200b16dfd7f17048d6bc60fbfbc 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>
Diffstat (limited to 'ext')
-rw-r--r-- | ext/soup/gstsouphttpsrc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/soup/gstsouphttpsrc.c b/ext/soup/gstsouphttpsrc.c index 3809a111f..5fcf8bc46 100644 --- a/ext/soup/gstsouphttpsrc.c +++ b/ext/soup/gstsouphttpsrc.c @@ -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; |