mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-20 00:31:13 +00:00
souphttpsrc: Don't duplicate status_code to GStreamer error mapping
This commit is contained in:
parent
4ecccb6ff6
commit
5514bc2785
1 changed files with 1 additions and 4 deletions
|
@ -955,10 +955,7 @@ gst_soup_http_src_finished_cb (SoupMessage * msg, GstSoupHTTPSrc * src)
|
||||||
GST_DEBUG_OBJECT (src, "Ignoring error %d:%s during HEAD request",
|
GST_DEBUG_OBJECT (src, "Ignoring error %d:%s during HEAD request",
|
||||||
msg->status_code, msg->reason_phrase);
|
msg->status_code, msg->reason_phrase);
|
||||||
} else {
|
} else {
|
||||||
/* FIXME: reason_phrase is not translated, add proper error message */
|
gst_soup_http_src_parse_status (msg, src);
|
||||||
GST_ELEMENT_ERROR (src, RESOURCE, NOT_FOUND,
|
|
||||||
("%s", msg->reason_phrase),
|
|
||||||
("libsoup status code %d", msg->status_code));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (src->loop)
|
if (src->loop)
|
||||||
|
|
Loading…
Reference in a new issue