Meta.deserialize

Recreate a #GstMeta from serialized data returned by gst.meta.Meta.serialize and add it to buffer.

Note that the meta must have been previously registered by calling one of gst_*_meta_get_info () functions.

consumed is set to the number of bytes that can be skipped from data to find the next meta serialization, if any. In case of parsing error that does not allow to determine that size, consumed is set to 0.

class Meta
static
deserialize

Parameters

buffer gst.buffer.Buffer

a #GstBuffer

data ubyte[]

serialization data obtained from gst.meta.Meta.serialize

consumed uint

total size used by this meta, could be less than size

Return Value

Type: gst.meta.Meta

the metadata owned by buffer, or null.