mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 11:41:09 +00:00
828252e0f2
Original commit message from CVS: * common/as-libtool.mak: Fine-tune DLL building. * configure.ac: Link plugins against libgstreamer. Define plugindir (like gst-plugins) * examples/plugins/Makefile.am: remove plugindir * gst/autoplug/Makefile.am: DLL building fixes * gst/elements/Makefile.am: DLL building fixes. Disable pipefilter on Windows. * gst/elements/gstelements.c: Conditionally disable pipefilter. * gst/indexers/Makefile.am: DLL building fixes * gst/schedulers/Makefile.am: DLL building fixes. * libs/gst/bytestream/Makefile.am: DLL building fixes. * libs/gst/control/Makefile.am: same * libs/gst/getbits/Makefile.am: same * testsuite/Makefile.am: New dlopen directory * testsuite/dlopen/Makefile.am: Tests to check if libgstreamer works when dlopened. * testsuite/dlopen/dlopen_gst.c: (main): same * testsuite/dlopen/loadgst.c: (do_test): same
25 lines
501 B
C
25 lines
501 B
C
|
|
#include <gmodule.h>
|
|
|
|
|
|
int
|
|
main (int argc, char *argv[])
|
|
{
|
|
GModule *module;
|
|
void (*symbol) (void);
|
|
gboolean ret;
|
|
|
|
module = g_module_open (".libs/libloadgst.so",
|
|
G_MODULE_BIND_LOCAL | G_MODULE_BIND_LAZY);
|
|
g_assert (module != NULL);
|
|
|
|
ret = g_module_symbol (module, "gst_init", (gpointer *) & symbol);
|
|
g_print ("'gst_init' is %s\n", ret ? "visible" : "not visible");
|
|
|
|
ret = g_module_symbol (module, "do_test", (gpointer *) & symbol);
|
|
g_assert (ret);
|
|
|
|
symbol ();
|
|
|
|
exit (0);
|
|
}
|