Mercurial > audlegacy-plugins
diff src/madplug/plugin.c @ 651:b9167008fc3f trunk
[svn] - strings in audmad_config should be freed before update. thus constant initializer has been replaced with g_strdup().
| author | yaz |
|---|---|
| date | Wed, 14 Feb 2007 18:03:22 -0800 |
| parents | 8b9ef7a32e47 |
| children | 638b290641f3 |
line wrap: on
line diff
--- a/src/madplug/plugin.c Wed Feb 14 10:15:53 2007 -0800 +++ b/src/madplug/plugin.c Wed Feb 14 18:03:22 2007 -0800 @@ -103,11 +103,10 @@ audmad_config.use_xing = TRUE; audmad_config.dither = TRUE; audmad_config.sjis = FALSE; - audmad_config.pregain_db = "+0.00"; + audmad_config.hard_limit = FALSE; audmad_config.replaygain.enable = TRUE; audmad_config.replaygain.track_mode = FALSE; - audmad_config.hard_limit = FALSE; - audmad_config.replaygain.default_db = "-9.00"; + audmad_config.title_override = FALSE; db = bmp_cfg_db_open(); if (db) { @@ -140,7 +139,13 @@ mad_cond = g_cond_new(); audmad_config_compute(&audmad_config); - if (audmad_config.id3_format != NULL) + if (!audmad_config.pregain_db) + audmad_config.pregain_db = g_strdup("+0.00"); + + if (!audmad_config.replaygain.default_db) + audmad_config.replaygain.default_db = g_strdup("-9.00"); + + if (!audmad_config.id3_format) audmad_config.id3_format = g_strdup(""); }
