list_filter
function list_filter(list:[Gst.ElementFactory], caps:Gst.Caps, direction:Gst.PadDirection, subsetonly:Boolean):[Gst.ElementFactory] { // Gjs wrapper for gst_element_factory_list_filter() }
Filter out all the elementfactories in list that can handle caps in the given direction.
If subsetonly is true, then only the elements whose pads templates are a complete superset of caps will be returned. Else any element whose pad templates caps can intersect with caps will be returned.
- list
a GLib.List of Gst.ElementFactory to filter
- caps
a Gst.Caps
- direction
a Gst.PadDirection to filter on
- subsetonly
whether to filter on caps subsets or not.
- Returns
a GLib.List of Gst.ElementFactory elements that match the given requisits. Use #gst_plugin_feature_list_free after usage.