changeset 3675:65b9207fb7b2

Make effect plugins work again.
author William Pitcock <nenolod@atheme.org>
date Sun, 30 Sep 2007 12:02:07 -0500
parents c9264d1e3982
children 4920d6d4ac6e
files src/audacious/effect.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/audacious/effect.c	Sat Sep 29 20:30:31 2007 -0500
+++ b/src/audacious/effect.c	Sun Sep 30 12:02:07 2007 -0500
@@ -83,7 +83,6 @@
     if (!node || !(node->data))
         return;
     ep = node->data;
-    ep->enabled = enable;
 
     if (enable && !ep->enabled) {
         ep_data.enabled_list = g_list_append(ep_data.enabled_list, ep);
@@ -95,6 +94,8 @@
         if (ep->cleanup)
             ep->cleanup();
     }
+
+    ep->enabled = enable;
 }
 
 GList *