GstAutoplugFactory

Name

GstAutoplugFactory -- Create autopluggers from a factory.

Synopsis


#include <gst/gst.h>


struct      GstAutoplugFactory;
GstAutoplugFactory* gst_autoplugfactory_new (const gchar *name,
                                             const gchar *longdesc,
                                             GType type);
void        gst_autoplugfactory_destroy     (GstAutoplugFactory *factory);
GstAutoplugFactory* gst_autoplugfactory_find
                                            (const gchar *name);
GList*      gst_autoplugfactory_get_list    (void);
GstAutoplug* gst_autoplugfactory_create     (GstAutoplugFactory *factory);
GstAutoplug* gst_autoplugfactory_make       (const gchar *name);

Object Hierarchy


  GObject
   +----GstObject
         +----GstPluginFeature
               +----GstAutoplugFactory

Description

An autoplugfactory is used to create instances of an autoplugger. It can be added to a GstPlugin as it extends GstPluginFeature.

Use gst_autoplugfactory_new() to create a new autoplugger which can be registered to a plugin with gst_plugin_add_feature().

Use gst_autoplugfactory_find() to find the named autoplugfactory. or use gst_autoplugfactory_get_list() to get a list of all available autopluggers.

Once an autoplugfactory has been obtained use gst_autoplugfactory_create() to instantiate a real autoplugger. Optionally gst_autoplugfactory_make() to create a autoplugger from the named factory.

Use gst_autoplugfactory_destroy() to remove the factory from the global list.

Details

struct GstAutoplugFactory

struct GstAutoplugFactory;


gst_autoplugfactory_new ()

GstAutoplugFactory* gst_autoplugfactory_new (const gchar *name,
                                             const gchar *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.


gst_autoplugfactory_destroy ()

void        gst_autoplugfactory_destroy     (GstAutoplugFactory *factory);

Removes the autoplug from the global list.

factory : factory to destroy


gst_autoplugfactory_find ()

GstAutoplugFactory* gst_autoplugfactory_find
                                            (const gchar *name);

Search for an autoplugfactory of the given name.

name : name of autoplugfactory to find
Returns : GstAutoplugFactory if found, NULL otherwise


gst_autoplugfactory_get_list ()

GList*      gst_autoplugfactory_get_list    (void);

Get the global list of autoplugfactories.

Returns : GList of type GstAutoplugFactory


gst_autoplugfactory_create ()

GstAutoplug* gst_autoplugfactory_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.


gst_autoplugfactory_make ()

GstAutoplug* gst_autoplugfactory_make       (const gchar *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.

See Also

GstAutoplug, GstPlugin, GstPluginFeature.