summaryrefslogtreecommitdiffstats
path: root/ext
diff options
context:
space:
mode:
authorWouter Cloetens <wouter@mind.be>2008-01-30 13:29:15 +0000
committerSebastian Dröge <slomo@circular-chaos.org>2008-01-30 13:29:15 +0000
commitee5bc192818d2a6b9660e5ced8a44e97bbb81fa6 (patch)
tree39ce32be9725ed9c94fe2fe8ef87a3c4f8dccf0b /ext
parent9d881227acb83a43fd33451fffe780bb30e18a18 (diff)
downloadgst-plugins-bad-ee5bc192818d2a6b9660e5ced8a44e97bbb81fa6.tar.gz
gst-plugins-bad-ee5bc192818d2a6b9660e5ced8a44e97bbb81fa6.tar.bz2
gst-plugins-bad-ee5bc192818d2a6b9660e5ced8a44e97bbb81fa6.zip
ext/soup/gstsouphttpsrc.c: Let the proxy property default to the content of the $http_proxy environment variable.
Original commit message from CVS: Patch by: Wouter Cloetens <wouter at mind dot be> * ext/soup/gstsouphttpsrc.c: (gst_souphttp_src_init): Let the proxy property default to the content of the $http_proxy environment variable.
Diffstat (limited to 'ext')
-rw-r--r--ext/soup/gstsouphttpsrc.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/ext/soup/gstsouphttpsrc.c b/ext/soup/gstsouphttpsrc.c
index dff897c6..9cb47933 100644
--- a/ext/soup/gstsouphttpsrc.c
+++ b/ext/soup/gstsouphttpsrc.c
@@ -277,8 +277,9 @@ gst_souphttp_src_class_init (GstSouphttpSrcClass * klass)
static void
gst_souphttp_src_init (GstSouphttpSrc * src, GstSouphttpSrcClass * g_class)
{
+ const gchar *proxy;
+
src->location = NULL;
- src->proxy = NULL;
src->automatic_redirect = TRUE;
src->user_agent = g_strdup (DEFAULT_USER_AGENT);
src->icy_caps = NULL;
@@ -296,6 +297,12 @@ gst_souphttp_src_init (GstSouphttpSrc * src, GstSouphttpSrcClass * g_class)
src->seekable = TRUE;
src->read_position = 0;
src->request_position = 0;
+ proxy = g_getenv ("http_proxy");
+ if (proxy && !gst_souphttp_src_set_proxy (src, proxy)) {
+ GST_WARNING_OBJECT (src,
+ "The proxy in the http_proxy env var (\"%s\") cannot be parsed.",
+ proxy);
+ }
}
static void