mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-20 08:41:07 +00:00
25b21e82f5
Original commit message from CVS: fixing tests
27 lines
494 B
C
27 lines
494 B
C
|
|
#include <gst/gst.h>
|
|
|
|
int
|
|
main (int argc, char *argv[])
|
|
{
|
|
GstPlugin *plugin;
|
|
GError *error = NULL;
|
|
gboolean loaded;
|
|
|
|
gst_init (&argc, &argv);
|
|
|
|
plugin = gst_plugin_new (".libs/libtestplugin.so");
|
|
g_assert (plugin != NULL);
|
|
|
|
loaded = gst_plugin_load_plugin (plugin, &error);
|
|
if (error)
|
|
{
|
|
g_print ("ERROR loading plug-in: %s\n", error->message);
|
|
g_free (error);
|
|
}
|
|
g_assert (loaded == TRUE);
|
|
|
|
g_print ("testplugin: %d, %s\n", loaded, plugin->name);
|
|
|
|
return 0;
|
|
}
|