summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Courtier-Dutton <jcdutton@users.sourceforge.net>2001-08-23 13:27:24 +0000
committerJames Courtier-Dutton <jcdutton@users.sourceforge.net>2001-08-23 13:27:24 +0000
commitdfd69b60c74c23862ed7b62e1b353485a34a8cab (patch)
tree86541c62297b275679b0df89aea2b9e58a654042
parent8df246ca0cf9876e3865f021668f39da761526fa (diff)
downloadxine-lib-dfd69b60c74c23862ed7b62e1b353485a34a8cab.tar.gz
xine-lib-dfd69b60c74c23862ed7b62e1b353485a34a8cab.tar.bz2
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
-rw-r--r--src/xine-engine/load_plugins.c4
1 files 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;