2001-08-21 20:16:48 +00:00
|
|
|
|
|
|
|
#include <gst/gst.h>
|
|
|
|
|
2004-03-13 15:27:01 +00:00
|
|
|
int
|
2001-08-21 20:16:48 +00:00
|
|
|
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
|
|
|
|
|
|
|
gst_init (&argc, &argv);
|
|
|
|
|
2003-11-04 05:48:16 +00:00
|
|
|
plugin = gst_plugin_load_file (".libs/libtestplugin.so", &error);
|
2004-03-13 15:27:01 +00:00
|
|
|
if (error) {
|
2002-07-01 10:41:39 +00:00
|
|
|
g_print ("ERROR loading plug-in: %s\n", error->message);
|
|
|
|
g_free (error);
|
2003-11-04 05:48:16 +00:00
|
|
|
return 1;
|
2002-07-01 10:41:39 +00:00
|
|
|
}
|
2004-05-19 18:50:35 +00:00
|
|
|
g_assert (plugin != NULL);
|
2001-08-21 20:16:48 +00:00
|
|
|
|
2004-03-13 15:27:01 +00:00
|
|
|
g_print ("testplugin: %s\n", gst_plugin_get_name (plugin));
|
2001-08-21 20:16:48 +00:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|