changeset 1133:78d1d5307b29 trunk

[svn] - proxy support hack (stupid gconf)
author nenolod
date Sun, 04 Jun 2006 01:30:51 -0700
parents d63b74dd62a3
children d43080f00587
files Plugins/Input/vorbis/vorbis.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Plugins/Input/vorbis/vorbis.c	Sat Jun 03 18:21:06 2006 -0700
+++ b/Plugins/Input/vorbis/vorbis.c	Sun Jun 04 01:30:51 2006 -0700
@@ -843,6 +843,7 @@
 vorbis_init(void)
 {
     ConfigDb *db;
+    gchar *tmp = NULL;
 
     memset(&vorbis_cfg, 0, sizeof(vorbis_config_t));
     vorbis_cfg.http_buffer_size = 128;
@@ -895,7 +896,8 @@
 
     bmp_cfg_db_get_bool(db, NULL, "use_proxy", &vorbis_cfg.use_proxy);
     bmp_cfg_db_get_string(db, NULL, "proxy_host", &vorbis_cfg.proxy_host);
-    bmp_cfg_db_get_int(db, NULL, "proxy_port", &vorbis_cfg.proxy_port);
+    bmp_cfg_db_get_string(db, NULL, "proxy_port", &tmp);
+    vorbis_cfg.proxy_port = atoi(tmp);
     bmp_cfg_db_get_bool(db, NULL, "proxy_use_auth", &vorbis_cfg.proxy_use_auth);
     bmp_cfg_db_get_string(db, NULL, "proxy_user", &vorbis_cfg.proxy_user);
     bmp_cfg_db_get_string(db, NULL, "proxy_pass", &vorbis_cfg.proxy_pass);