ElementFactory


Object Hierarchy:

Object hierarchy for ElementFactory

Description:

[ CCode ( type_id = "gst_element_factory_get_type ()" ) ]
public class ElementFactory : PluginFeature

ElementFactory is used to create instances of elements.

A GstElementFactory can be added to a Plugin as it is also a PluginFeature.

Use the find and create functions to create element instances or use make as a convenient shortcut.

The following code example shows you how to create a GstFileSrc element.

Using an element factory

  #include <gst/gst.h>

GstElement *src;
GstElementFactory *srcfactory;

gst_init (&argc, &argv);

srcfactory = gst_element_factory_find ("filesrc");
g_return_if_fail (srcfactory != NULL);
src = gst_element_factory_create (srcfactory, "src");
g_return_if_fail (src != NULL);
...


Namespace: Gst
Package: gstreamer-1.0

Content:

Static methods:

Creation methods:

Methods:

Inherited Members: