Mercurial > audlegacy-plugins
comparison src/flac112/plugin.c @ 513:77012d414f58 trunk
[svn] - flac 112 plugin: removed ui options related to old http support
| author | giacomo |
|---|---|
| date | Mon, 22 Jan 2007 08:42:50 -0800 |
| parents | 5be9b8f7ac03 |
| children | 8f1785471613 |
comparison
equal
deleted
inserted
replaced
| 512:5be9b8f7ac03 | 513:77012d414f58 |
|---|---|
| 240 flac_cfg.output.resolution.replaygain.noise_shaping = 1; | 240 flac_cfg.output.resolution.replaygain.noise_shaping = 1; |
| 241 | 241 |
| 242 if(!bmp_cfg_db_get_int(db, "flac", "output.resolution.replaygain.bps_out", &flac_cfg.output.resolution.replaygain.bps_out)) | 242 if(!bmp_cfg_db_get_int(db, "flac", "output.resolution.replaygain.bps_out", &flac_cfg.output.resolution.replaygain.bps_out)) |
| 243 flac_cfg.output.resolution.replaygain.bps_out = 16; | 243 flac_cfg.output.resolution.replaygain.bps_out = 16; |
| 244 | 244 |
| 245 /* stream */ | 245 bmp_cfg_db_close(db); |
| 246 | |
| 247 bmp_cfg_db_get_int(db, "flac", "stream.http_buffer_size", &flac_cfg.stream.http_buffer_size); | |
| 248 bmp_cfg_db_get_int(db, "flac", "stream.http_prebuffer", &flac_cfg.stream.http_prebuffer); | |
| 249 bmp_cfg_db_get_bool(db, "flac", "stream.save_http_stream", &flac_cfg.stream.save_http_stream); | |
| 250 if (!bmp_cfg_db_get_string(db, "flac", "stream.save_http_path", &flac_cfg.stream.save_http_path) || | |
| 251 ! *flac_cfg.stream.save_http_path) { | |
| 252 /* TODO: Is this a memory leak ?? */ | |
| 253 /* | |
| 254 if (flac_cfg.stream.save_http_path) | |
| 255 g_free (flac_cfg.stream.save_http_path); | |
| 256 */ | |
| 257 flac_cfg.stream.save_http_path = homedir(); | |
| 258 } | |
| 259 bmp_cfg_db_get_bool(db, "flac", "stream.cast_title_streaming", &flac_cfg.stream.cast_title_streaming); | |
| 260 bmp_cfg_db_get_bool(db, "flac", "stream.use_udp_channel", &flac_cfg.stream.use_udp_channel); | |
| 261 | 246 |
| 262 decoder_ = FLAC__seekable_stream_decoder_new(); | 247 decoder_ = FLAC__seekable_stream_decoder_new(); |
| 263 | |
| 264 bmp_cfg_db_get_bool(db, NULL, "use_proxy", &flac_cfg.stream.use_proxy); | |
| 265 if(!bmp_cfg_db_get_string(db, NULL, "proxy_host", &flac_cfg.stream.proxy_host)) | |
| 266 flac_cfg.stream.proxy_host = NULL; | |
| 267 bmp_cfg_db_get_string(db, NULL, "proxy_port", &tmp); | |
| 268 | |
| 269 if (tmp != NULL) | |
| 270 flac_cfg.stream.proxy_port = atoi(tmp); | |
| 271 | |
| 272 bmp_cfg_db_get_bool(db, NULL, "proxy_use_auth", &flac_cfg.stream.proxy_use_auth); | |
| 273 if(!bmp_cfg_db_get_string(db, NULL, "proxy_user", &flac_cfg.stream.proxy_user)) | |
| 274 flac_cfg.stream.proxy_user = NULL; | |
| 275 if(!bmp_cfg_db_get_string(db, NULL, "proxy_pass", &flac_cfg.stream.proxy_pass)) | |
| 276 flac_cfg.stream.proxy_pass = NULL; | |
| 277 | |
| 278 bmp_cfg_db_close(db); | |
| 279 } | 248 } |
| 280 | 249 |
| 281 int FLAC_XMMS__is_our_file_from_vfs( gchar * filename , VFSFile * vfsfile ) | 250 int FLAC_XMMS__is_our_file_from_vfs( gchar * filename , VFSFile * vfsfile ) |
| 282 { | 251 { |
| 283 gchar magic_bytes[4]; | 252 gchar magic_bytes[4]; |
| 423 } | 392 } |
| 424 | 393 |
| 425 if (flac_cfg.title.user_char_set) { | 394 if (flac_cfg.title.user_char_set) { |
| 426 g_free(flac_cfg.title.user_char_set); | 395 g_free(flac_cfg.title.user_char_set); |
| 427 flac_cfg.title.user_char_set = NULL; | 396 flac_cfg.title.user_char_set = NULL; |
| 428 } | |
| 429 | |
| 430 if (flac_cfg.stream.proxy_host) { | |
| 431 g_free(flac_cfg.stream.proxy_host); | |
| 432 flac_cfg.stream.proxy_host = NULL; | |
| 433 } | |
| 434 | |
| 435 if (flac_cfg.stream.proxy_user) { | |
| 436 g_free(flac_cfg.stream.proxy_user); | |
| 437 flac_cfg.stream.proxy_user = NULL; | |
| 438 | |
| 439 } | |
| 440 | |
| 441 if (flac_cfg.stream.proxy_pass) { | |
| 442 g_free(flac_cfg.stream.proxy_pass); | |
| 443 flac_cfg.stream.proxy_pass = NULL; | |
| 444 } | 397 } |
| 445 | 398 |
| 446 file_decoder_safe_decoder_delete_(decoder_); | 399 file_decoder_safe_decoder_delete_(decoder_); |
| 447 decoder_ = 0; | 400 decoder_ = 0; |
| 448 } | 401 } |
