Since 1.4Optionalproperties: Partial<{}>Adds a new Gst.Pad to the GstBase.FlowCombiner.
Removes all pads from a GstBase.FlowCombiner and resets it to its initial state.
Frees a GstBase.FlowCombiner struct and all its internal data.
Increments the reference count on the GstBase.FlowCombiner.
the GstBase.FlowCombiner.
Removes a Gst.Pad from the GstBase.FlowCombiner.
Reset flow combiner and all pads to their initial state without removing pads.
Decrements the reference count on the GstBase.FlowCombiner.
Computes the combined flow return for the pads in it.
The Gst.FlowReturn parameter should be the last flow return update for a pad in this GstBase.FlowCombiner. It will use this value to be able to shortcut some combinations and avoid looking over all pads again. e.g. The last combined return is the same as the latest obtained Gst.FlowReturn.
the latest Gst.FlowReturn received for a pad in this GstBase.FlowCombiner
The combined Gst.FlowReturn
Sets the provided pad's last flow return to provided value and computes the combined flow return for the pads in it.
The Gst.FlowReturn parameter should be the last flow return update for a pad in this GstBase.FlowCombiner. It will use this value to be able to shortcut some combinations and avoid looking over all pads again. e.g. The last combined return is the same as the latest obtained Gst.FlowReturn.
the Gst.Pad whose Gst.FlowReturn to update
the latest Gst.FlowReturn received for a pad in this GstBase.FlowCombiner
The combined Gst.FlowReturn
Staticnew
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.Since
1.4