gstreamer/testsuite/plugin/dynamic.c
David Schleef aa63f65fc8 Update for new plugin API. static and static2 now fail
Original commit message from CVS:
Update for new plugin API.  static and static2 now fail
2003-11-04 05:48:16 +00:00

24 lines
424 B
C

#include <gst/gst.h>
int
main (int argc, char *argv[])
{
GstPlugin *plugin;
GError *error = NULL;
gst_init (&argc, &argv);
plugin = gst_plugin_load_file (".libs/libtestplugin.so", &error);
g_assert (plugin != NULL);
if (error)
{
g_print ("ERROR loading plug-in: %s\n", error->message);
g_free (error);
return 1;
}
g_print ("testplugin: %s\n", gst_plugin_get_name(plugin));
return 0;
}