Class (GI Struct)

GstBase-1.0GstBaseFlowCombinerSince 1.4

Utility struct to help handling Gst.FlowReturn combination. Useful for Gst.Elements that have multiple source pads and need to combine the different Gst.FlowReturn for those pads.

GstBase.FlowCombiner works by using the last Gst.FlowReturn for all Gst.Pad it has in its list and computes the combined return value and provides it to the caller.

To add a new pad to the GstBase.FlowCombiner use gst_flow_combiner_add_pad(). The new Gst.Pad is stored with a default value of Gst.FlowReturn.OK.

In case you want a Gst.Pad to be removed, use gst_flow_combiner_remove_pad().

Please be aware that this struct isn't thread safe as its designed to be used by demuxers, those usually will have a single thread operating it.

These functions will take refs on the passed Gst.Pads.

Aside from reducing the user's code size, the main advantage of using this helper struct is to follow the standard rules for Gst.FlowReturn combination. These rules are:

Gst.FlowReturn.ERROR or below, GST_FLOW_NOT_NEGOTIATED and GST_FLOW_FLUSHING are returned immediately from the gst_flow_combiner_update_flow() function.

1.4

Index

Constructors

Properties

Methods