Gst.MetaFactory

g GObject.InitiallyUnowned GObject.InitiallyUnowned Gst.Object Gst.Object GObject.InitiallyUnowned->Gst.Object GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned Gst.MetaFactory Gst.MetaFactory Gst.PluginFeature Gst.PluginFeature Gst.Object->Gst.PluginFeature Gst.PluginFeature->Gst.MetaFactory

Subclasses:

None

Methods

Inherited:

Gst.PluginFeature (10), Gst.Object (29), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

load (factoryname)

class

register (plugin, meta_info)

Virtual Methods

Inherited:

Gst.Object (1), GObject.Object (7)

Properties

Inherited:

Gst.Object (2)

Signals

Inherited:

Gst.Object (1), GObject.Object (1)

Fields

Inherited:

Gst.Object (1), GObject.Object (1)

Class Details

class Gst.MetaFactory(**kwargs)
Bases:

Gst.PluginFeature

Abstract:

No

Structure:

Gst.MetaFactoryClass

Register a Gst.MetaInfo that can be automatically loaded the first time it is used.

In general, applications and plugins don’t need to use the factory beyond registering the meta in a plugin init function. Once that is done, the meta is stored in the registry, and ready as soon as the registry is loaded.

Registering a meta for dynamic loading
static gboolean
plugin_init (GstPlugin * plugin)
{
  return gst_meta_factory_register (plugin, my_meta_get_info());
}

New in version 1.28.

classmethod load(factoryname)[source]
Parameters:

factoryname (str) – The name of the Gst.MetaInfo to load

Returns:

A Gst.MetaInfo or None if not found

Return type:

Gst.MetaInfo

Loads a previously registered Gst.MetaInfo from the registry.

New in version 1.28.

classmethod register(plugin, meta_info)[source]
Parameters:
Return type:

bool

Registers a new Gst.MetaInfo in the registry

New in version 1.28.