curlhttpsink: allow for unconditionally disabling proxying

Previously if the proxy server hostname was the empty string
curlhttpsink would never even set the libcurl option. For libcurl
however, having a proxy server hostname be the empty string means that
proxying should be disabled even if environment variables might be set.
Now with the restriction lifted, doing this is allowed.

https://bugzilla.gnome.org/show_bug.cgi?id=728960
This commit is contained in:
Sebastian Rasmussen 2014-04-22 22:26:32 +02:00 committed by Sebastian Dröge
parent 54d160be5f
commit 13f87a1db1

View file

@ -367,7 +367,7 @@ gst_curl_http_sink_set_options_unlocked (GstCurlBaseSink * bcsink)
GstCurlTlsSinkClass *parent_class;
/* proxy settings */
if (sink->proxy != NULL && strlen (sink->proxy)) {
if (sink->proxy != NULL) {
if (!proxy_setup (bcsink)) {
return FALSE;
}