Structure.serialize

string serialize(gst.types.SerializeFlags flags)

Converts structure to a human-readable string representation.

This version of the caps serialization function introduces support for nested structures and caps but the resulting strings won't be parsable with GStreamer prior to 1.20 unless #GST_SERIALIZE_FLAG_BACKWARD_COMPAT is passed as flag.

[gst.types.SerializeFlags.Strict] flags is not allowed because it would make this function nullable which is an API break for bindings. Use [gst.structure.Structure.serializeFull] instead.

Free-function: g_free

Parameters

flagsThe flags to use to serialize structure

Returns

a pointer to string allocated by [glib.global.gmalloc].

[glib.global.gfree] after usage.

Deprecated

Use [gst.structure.Structure.serializeFull] instead.