diff options
Diffstat (limited to 'test/plugin.c')
-rw-r--r-- | test/plugin.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/plugin.c b/test/plugin.c new file mode 100644 index 000000000..4da003fea --- /dev/null +++ b/test/plugin.c @@ -0,0 +1,17 @@ +#include <gst/gst.h> + +int main(int argc,char *argv[]) { + GstElementFactory *parseau_factory; + GstElement *parseau; + + gst_init(&argc,&argv); + + gst_plugin_load_all(); + + parseau_factory = gst_plugin_find_elementfactory("parseau"); + g_print("parseau_factory is %p\n",parseau_factory); + + parseau = gst_elementfactory_create(parseau_factory,"parser"); + g_print("got parseau '%s' from plugin!!!\n", + gst_object_get_name(GST_OBJECT(parseau))); +} |