Mercurial > audlegacy-plugins
diff src/flac113/plugin.c @ 517:5d05cefbf7ae trunk
[svn] - flac 113 plugin: get rid of old http options in ui
| author | giacomo |
|---|---|
| date | Mon, 22 Jan 2007 09:20:08 -0800 |
| parents | 522acbb51ecc |
| children | 221086196f89 |
line wrap: on
line diff
--- a/src/flac113/plugin.c Mon Jan 22 09:08:16 2007 -0800 +++ b/src/flac113/plugin.c Mon Jan 22 09:20:08 2007 -0800 @@ -236,37 +236,6 @@ if(!bmp_cfg_db_get_int(db, "flac", "output.resolution.replaygain.bps_out", &flac_cfg.output.resolution.replaygain.bps_out)) flac_cfg.output.resolution.replaygain.bps_out = 16; - /* stream */ - - bmp_cfg_db_get_int(db, "flac", "stream.http_buffer_size", &flac_cfg.stream.http_buffer_size); - bmp_cfg_db_get_int(db, "flac", "stream.http_prebuffer", &flac_cfg.stream.http_prebuffer); - bmp_cfg_db_get_bool(db, "flac", "stream.save_http_stream", &flac_cfg.stream.save_http_stream); - if (!bmp_cfg_db_get_string(db, "flac", "stream.save_http_path", &flac_cfg.stream.save_http_path) || - ! *flac_cfg.stream.save_http_path) { - /* TODO: Is this a memory leak ?? */ - /* - if (flac_cfg.stream.save_http_path) - g_free (flac_cfg.stream.save_http_path); - */ - flac_cfg.stream.save_http_path = homedir(); - } - bmp_cfg_db_get_bool(db, "flac", "stream.cast_title_streaming", &flac_cfg.stream.cast_title_streaming); - bmp_cfg_db_get_bool(db, "flac", "stream.use_udp_channel", &flac_cfg.stream.use_udp_channel); - - bmp_cfg_db_get_bool(db, NULL, "use_proxy", &flac_cfg.stream.use_proxy); - if(!bmp_cfg_db_get_string(db, NULL, "proxy_host", &flac_cfg.stream.proxy_host)) - flac_cfg.stream.proxy_host = NULL; - - bmp_cfg_db_get_string(db, NULL, "proxy_port", &tmp); - if (tmp != NULL) - flac_cfg.stream.proxy_port = atoi(tmp); - - bmp_cfg_db_get_bool(db, NULL, "proxy_use_auth", &flac_cfg.stream.proxy_use_auth); - if(!bmp_cfg_db_get_string(db, NULL, "proxy_user", &flac_cfg.stream.proxy_user)) - flac_cfg.stream.proxy_user = NULL; - if(!bmp_cfg_db_get_string(db, NULL, "proxy_pass", &flac_cfg.stream.proxy_pass)) - flac_cfg.stream.proxy_pass = NULL; - bmp_cfg_db_close(db); decoder_ = FLAC__stream_decoder_new(); @@ -422,22 +391,6 @@ flac_cfg.title.user_char_set = NULL; } - if (flac_cfg.stream.proxy_host) { - g_free(flac_cfg.stream.proxy_host); - flac_cfg.stream.proxy_host = NULL; - } - - if (flac_cfg.stream.proxy_user) { - g_free(flac_cfg.stream.proxy_user); - flac_cfg.stream.proxy_user = NULL; - - } - - if (flac_cfg.stream.proxy_pass) { - g_free(flac_cfg.stream.proxy_pass); - flac_cfg.stream.proxy_pass = NULL; - } - safe_decoder_delete_(decoder_); decoder_ = 0; }
