ElementFactory.listFilter

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.

class ElementFactory
static
listFilter

Parameters

list ListG

a GList of GstElementFactory to filter. [transfer none][element-type Gst.ElementFactory]

caps Caps

a GstCaps

direction GstPadDirection

a GstPadDirection to filter on

subsetonly int

whether to filter on caps subsets or not.

Return Value

Type: ListG

a GList of GstElementFactory elements that match the given requisits. Use gst_plugin_feature_list_free after usage. [transfer full][element-type Gst.ElementFactory]

Meta