gl: Try harder to load symbols from the correct place
authorSebastian Dröge <sebastian@centricular.com>
Thu, 1 May 2014 12:36:54 +0000 (14:36 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Thu, 1 May 2014 12:36:54 +0000 (14:36 +0200)
commitcad1bb32c8dc34290524e029cb27a930eb84fa78
treeffcfc1a10e46d5251b27d88d0a84894b08cf924d
parent5681f78362cc2b20b4dd71d1836e25c27e3e410f
gl: Try harder to load symbols from the correct place

This commit makes the loading of the GModules threadsafe, and
always first tries to load the symbol for the GL library that
is selected for the current context. Only then it falls back
to looking into the current module (NULL), and only as a last
resort the context specific function (e.g. eglGetProcAddress())
is called.

Also add configure parameters to select the names of the library
modules instead of using the defaults, and let the defaults be
independent of the G_MODULE_SUFFIX.

https://bugzilla.gnome.org/show_bug.cgi?id=728753
configure.ac
gst-libs/gst/gl/egl/gstglcontext_egl.c
gst-libs/gst/gl/gstglcontext.c
gst-libs/gst/gl/win32/gstglcontext_wgl.c
gst-libs/gst/gl/x11/gstglcontext_glx.c