comparison audacious/pluginenum.c @ 833:d17d96d91e7d trunk

[svn] - improve the way the scrobbler plugin is compiled - use G_MODULE_BIND_LAZY to safely bind plugins dependant on libaudacious, some libdl implementations hate doing this otherwise
author nenolod
date Mon, 13 Mar 2006 19:29:55 -0800
parents 12c47704b4b5
children 0bb30ec2bce9
comparison
equal deleted inserted replaced
832:d2db0feae0ca 833:d17d96d91e7d
197 gpointer func; 197 gpointer func;
198 198
199 if (plugin_is_duplicate(filename)) 199 if (plugin_is_duplicate(filename))
200 return; 200 return;
201 201
202 if (!(module = g_module_open(filename, 0))) { 202 if (!(module = g_module_open(filename, G_MODULE_BIND_LAZY))) {
203 printf("Failed to load plugin (%s): %s\n", 203 printf("Failed to load plugin (%s): %s\n",
204 filename, g_module_error()); 204 filename, g_module_error());
205 return; 205 return;
206 } 206 }
207 207