[xiph-commits] r3408 - liboggplay/trunk/plugin

j at svn.annodex.net j at svn.annodex.net
Sun Feb 3 06:46:54 PST 2008


Author: j
Date: 2008-02-03 06:46:52 -0800 (Sun, 03 Feb 2008)
New Revision: 3408

Modified:
   liboggplay/trunk/plugin/plugin.cpp
Log:
do not use disabled plroxy settings

Modified: liboggplay/trunk/plugin/plugin.cpp
===================================================================
--- liboggplay/trunk/plugin/plugin.cpp	2008-02-03 14:45:23 UTC (rev 3407)
+++ liboggplay/trunk/plugin/plugin.cpp	2008-02-03 14:46:52 UTC (rev 3408)
@@ -276,9 +276,11 @@
 
   if (branch != NULL) {
     char *proxy;
+    int proxy_type;
     branch->GetCharPref("http", &proxy);
+    branch->GetIntPref("type", &proxy_type);
     branch->GetIntPref("http_port", &mProxyPort);
-    if (strlen(proxy) == 0) {
+    if (proxy_type == 0 || strlen(proxy) == 0) {
       mProxyHost = NULL;
     } else {
       mProxyHost = strdup(proxy);



More information about the commits mailing list