From dfd69b60c74c23862ed7b62e1b353485a34a8cab Mon Sep 17 00:00:00 2001 From: James Courtier-Dutton Date: Thu, 23 Aug 2001 13:27:24 +0000 Subject: Latest alsa cvs now works with xine. :-) Fix for dlsym problem with audio out plugins and the latest alsa cvs. I think RTLD_GLOBAL is supported on Solaris, Irix, and Linux. On FreeBSD we might need something like: - #ifndef RTLD_GLOBAL #define RTLD_GLOBAL 0 #endif As of Jan 1999 FreeBSD did not have an RTLD_GLOBAL, but essentually, RTLD_GLOBAL is set on every call. FreeBSD might support it now, I don't know. CVS patchset: 468 CVS date: 2001/08/23 13:27:24 --- src/xine-engine/load_plugins.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xine-engine/load_plugins.c b/src/xine-engine/load_plugins.c index 56936d1a1..0bbd8bec0 100644 --- a/src/xine-engine/load_plugins.c +++ b/src/xine-engine/load_plugins.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: load_plugins.c,v 1.38 2001/08/21 19:39:50 jcdutton Exp $ + * $Id: load_plugins.c,v 1.39 2001/08/23 13:27:24 jcdutton Exp $ * * * Load input/demux/audio_out/video_out/codec plugins @@ -741,7 +741,7 @@ ao_driver_t *xine_load_audio_output_plugin(config_values_t *config, sprintf (str, "%s/%s", XINE_PLUGINDIR, pEntry->d_name); - if(!(plugin = dlopen (str, RTLD_LAZY))) { + if(!(plugin = dlopen (str, RTLD_LAZY | RTLD_GLOBAL))) { printf("load_plugins: audio output plugin %s failed to link: %s\n", str, dlerror()); return NULL; -- cgit v1.2.3