mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-02 21:48:55 +00:00
souphttpsrc: always ignore HEAD errors
https://bugzilla.gnome.org/show_bug.cgi?id=704241
This commit is contained in:
parent
ef4a21253b
commit
e67655608c
1 changed files with 35 additions and 36 deletions
|
@ -1116,11 +1116,11 @@ gst_soup_http_src_response_cb (SoupSession * session, SoupMessage * msg,
|
||||||
static void
|
static void
|
||||||
gst_soup_http_src_parse_status (SoupMessage * msg, GstSoupHTTPSrc * src)
|
gst_soup_http_src_parse_status (SoupMessage * msg, GstSoupHTTPSrc * src)
|
||||||
{
|
{
|
||||||
if (SOUP_STATUS_IS_TRANSPORT_ERROR (msg->status_code)) {
|
|
||||||
if (msg->method == SOUP_METHOD_HEAD) {
|
if (msg->method == SOUP_METHOD_HEAD) {
|
||||||
|
if (!SOUP_STATUS_IS_SUCCESSFUL (msg->status_code))
|
||||||
GST_DEBUG_OBJECT (src, "Ignoring error %d during HEAD request",
|
GST_DEBUG_OBJECT (src, "Ignoring error %d during HEAD request",
|
||||||
msg->status_code);
|
msg->status_code);
|
||||||
} else {
|
} else if (SOUP_STATUS_IS_TRANSPORT_ERROR (msg->status_code)) {
|
||||||
switch (msg->status_code) {
|
switch (msg->status_code) {
|
||||||
case SOUP_STATUS_CANT_RESOLVE:
|
case SOUP_STATUS_CANT_RESOLVE:
|
||||||
case SOUP_STATUS_CANT_RESOLVE_PROXY:
|
case SOUP_STATUS_CANT_RESOLVE_PROXY:
|
||||||
|
@ -1154,7 +1154,6 @@ gst_soup_http_src_parse_status (SoupMessage * msg, GstSoupHTTPSrc * src)
|
||||||
/* No error message when interrupted by program. */
|
/* No error message when interrupted by program. */
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
} else if (SOUP_STATUS_IS_CLIENT_ERROR (msg->status_code) ||
|
} else if (SOUP_STATUS_IS_CLIENT_ERROR (msg->status_code) ||
|
||||||
SOUP_STATUS_IS_REDIRECTION (msg->status_code) ||
|
SOUP_STATUS_IS_REDIRECTION (msg->status_code) ||
|
||||||
SOUP_STATUS_IS_SERVER_ERROR (msg->status_code)) {
|
SOUP_STATUS_IS_SERVER_ERROR (msg->status_code)) {
|
||||||
|
|
Loading…
Reference in a new issue