![]() | ![]() | ![]() | GStreamer Core Reference Manual | ![]() |
---|
GstAutoplugFactory — Create autopluggers from a factory.
#include <gst/gst.h> struct GstAutoplugFactory; GstAutoplugFactory* gst_autoplug_factory_new (constgchar *name, constgchar *longdesc,GType type); void gst_autoplug_factory_destroy (GstAutoplugFactory *factory); GstAutoplugFactory* gst_autoplug_factory_find (constgchar *name); GstAutoplug* gst_autoplug_factory_create (GstAutoplugFactory *factory); GstAutoplug* gst_autoplug_factory_make (constgchar *name);
GObject +----GstPluginFeature +----GstAutoplugFactory
An autoplugfactory is used to create instances of an autoplugger. It can be added to a GstPlugin as it extends GstPluginFeature.
Use gst_autoplug_factory_new() to create a new autoplugger which can be registered to a plugin with gst_plugin_add_feature().
Use gst_autoplug_factory_find() to find the named autoplugfactory.
or use
Once an autoplugfactory has been obtained use gst_autoplug_factory_create() to instantiate a real autoplugger. Optionally gst_autoplug_factory_make() to create a autoplugger from the named factory.
Use gst_autoplug_factory_destroy() to remove the factory from the global list.
GstAutoplugFactory* gst_autoplug_factory_new (constgchar *name, constgchar *longdesc,GType type);
Create a new autoplugfactory with the given parameters
name : | name of autoplugfactory to create |
longdesc : | long description of autoplugfactory to create |
type : | the gtk type of the GstAutoplug element of this factory |
Returns : | a new GstAutoplugFactory. |
void gst_autoplug_factory_destroy (GstAutoplugFactory *factory);
Removes the autoplug from the global list.
factory : | factory to destroy |
GstAutoplugFactory* gst_autoplug_factory_find (constgchar *name);
Search for an autoplugfactory of the given name.
name : | name of autoplugfactory to find |
Returns : | GstAutoplugFactory if found, NULL otherwise |
GstAutoplug* gst_autoplug_factory_create (GstAutoplugFactory *factory);
Create a new GstAutoplug instance from the given autoplugfactory.
factory : | the factory used to create the instance |
Returns : | A new GstAutoplug instance. |
GstAutoplug* gst_autoplug_factory_make (constgchar *name);
Create a new GstAutoplug instance from the autoplugfactory with the given name.
name : | the name of the factory used to create the instance |
Returns : | A new GstAutoplug instance. |
<< GstAutoplug | GstBin >> |