mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-23 07:38:16 +00:00
souphttpsrc: Allow any type of proxy
Currently we only allowed HTTP proxy. Don't filter for the scheme, just check if it looks like an URI. Soup will warn if the URI is invalid or if proxy protocol is not supported. This enables using SOCKS 4/5 which is directly implemented into GIO. https://bugzilla.gnome.org/show_bug.cgi?id=783012
This commit is contained in:
parent
47ca2ce499
commit
52eb761acc
1 changed files with 1 additions and 1 deletions
|
@ -2098,7 +2098,7 @@ gst_soup_http_src_set_proxy (GstSoupHTTPSrc * src, const gchar * uri)
|
|||
if (uri == NULL || *uri == '\0')
|
||||
return TRUE;
|
||||
|
||||
if (g_str_has_prefix (uri, "http://")) {
|
||||
if (g_strstr_len (uri, -1, "://")) {
|
||||
src->proxy = soup_uri_new (uri);
|
||||
} else {
|
||||
gchar *new_uri = g_strconcat ("http://", uri, NULL);
|
||||
|
|
Loading…
Reference in a new issue