2001-08-21 20:16:48 +00:00
|
|
|
|
|
|
|
#include <gst/gst.h>
|
|
|
|
|
|
|
|
int
|
|
|
|
main (int argc, char *argv[])
|
|
|
|
{
|
|
|
|
GstPlugin *plugin;
|
2002-07-01 10:41:39 +00:00
|
|
|
GError *error = NULL;
|
2001-08-21 20:16:48 +00:00
|
|
|
gboolean loaded;
|
|
|
|
|
|
|
|
gst_init (&argc, &argv);
|
|
|
|
|
2002-05-10 19:24:04 +00:00
|
|
|
plugin = gst_plugin_new (".libs/libtestplugin.so");
|
|
|
|
g_assert (plugin != NULL);
|
2001-08-21 20:16:48 +00:00
|
|
|
|
2002-07-01 10:41:39 +00:00
|
|
|
loaded = gst_plugin_load_plugin (plugin, &error);
|
|
|
|
if (error)
|
|
|
|
{
|
|
|
|
g_print ("ERROR loading plug-in: %s\n", error->message);
|
|
|
|
g_free (error);
|
|
|
|
}
|
2001-08-21 20:16:48 +00:00
|
|
|
g_assert (loaded == TRUE);
|
|
|
|
|
|
|
|
g_print ("testplugin: %d, %s\n", loaded, plugin->name);
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|