Mercurial > audlegacy
changeset 939:d78fa5f0b680 trunk
[svn] prevent audiocompress from fulfilling its suicidal tendencies
author | giacomo |
---|---|
date | Sat, 15 Apr 2006 18:05:57 -0700 |
parents | 2078cdac3502 |
children | ef34fa67713e |
files | Plugins/Effect/audiocompress/audacious-glue.c Plugins/Effect/audiocompress/compress.c |
diffstat | 2 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/Plugins/Effect/audiocompress/audacious-glue.c Sat Apr 15 09:08:23 2006 -0700 +++ b/Plugins/Effect/audiocompress/audacious-glue.c Sat Apr 15 18:05:57 2006 -0700 @@ -35,6 +35,8 @@ static int myModify(gpointer * data, gint length, AFormat fmt, gint srate, gint nch); +static int inited = 0; + static EffectPlugin xmms_plugin = { NULL, NULL, @@ -54,7 +56,6 @@ void myInit(void) { - static int inited = 0; if (!inited) { initPrefs(&prefs); @@ -72,6 +73,7 @@ savePrefs(&prefs); freePrefs(&prefs); CompressFree(); + inited = 0; } int myModify(gpointer * data, gint length, AFormat fmt, gint srate, gint nch)