diff src/audacious/pluginenum.c @ 2801:8ab12f092722 trunk

[svn] - extended compatibility with v1 API
author nenolod
date Thu, 24 May 2007 15:47:58 -0700
parents febdfe7a482b
children d5c77e670be0
line wrap: on
line diff
--- a/src/audacious/pluginenum.c	Thu May 24 04:50:48 2007 -0700
+++ b/src/audacious/pluginenum.c	Thu May 24 15:47:58 2007 -0700
@@ -243,6 +243,7 @@
     {
         for (op_iter = header->op_list; *op_iter != NULL; op_iter++)
         {
+            PLUGIN(*op_iter)->filename = g_strdup(filename);
             g_print("plugin2 '%s' provides OutputPlugin <%p>\n", filename, *op_iter);
             output_plugin_init(PLUGIN(*op_iter));
         }
@@ -252,6 +253,7 @@
     {
         for (ep_iter = header->ep_list; *ep_iter != NULL; ep_iter++)
         {
+            PLUGIN(*ep_iter)->filename = g_strdup(filename);
             g_print("plugin2 '%s' provides EffectPlugin <%p>\n", filename, *ep_iter);
             effect_plugin_init(PLUGIN(*ep_iter));
         }
@@ -261,6 +263,7 @@
     {
         for (gp_iter = header->gp_list; *gp_iter != NULL; gp_iter++)
         {
+            PLUGIN(*gp_iter)->filename = g_strdup(filename);
             g_print("plugin2 '%s' provides GeneralPlugin <%p>\n", filename, *gp_iter);
             general_plugin_init(PLUGIN(*gp_iter));
         }
@@ -270,6 +273,7 @@
     {
         for (vp_iter = header->vp_list; *vp_iter != NULL; vp_iter++)
         {
+            PLUGIN(*vp_iter)->filename = g_strdup(filename);
             g_print("plugin2 '%s' provides VisPlugin <%p>\n", filename, *vp_iter);
             vis_plugin_init(PLUGIN(*vp_iter));
         }