mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-16 13:26:36 +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
28 lines
479 B
C
28 lines
479 B
C
|
|
#include <gst/gst.h>
|
|
|
|
|
|
void
|
|
do_test (void)
|
|
{
|
|
GstElement *pipeline;
|
|
int i;
|
|
gboolean ret;
|
|
|
|
gst_init (NULL, NULL);
|
|
|
|
pipeline = gst_parse_launch ("fakesrc ! fakesink", NULL);
|
|
g_assert (pipeline != NULL);
|
|
|
|
|
|
gst_element_set_state (pipeline, GST_STATE_PLAYING);
|
|
|
|
for (i = 0; i < 100; i++) {
|
|
ret = gst_bin_iterate (GST_BIN (pipeline));
|
|
g_assert (ret);
|
|
g_print ("%s", (i & 1) ? "+" : "-");
|
|
}
|
|
g_print ("\n");
|
|
|
|
gst_object_unref (GST_OBJECT (pipeline));
|
|
}
|