Valadoc | Vala | Tutorial | API-References | Markup

ElementFactory


Object Hierarchy:

Object hierarchy for ElementFactory

Description:

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);
...

Last reviewed on 2005-11-23 (0.9.5)


Namespace: Gst
Package: gstreamer-0.10

Content:

Static methods:

Creation methods:

Methods: