DeviceMonitor.addFilter

Adds a filter for which #GstDevice will be monitored, any device that matches all classes and the #GstCaps will be returned.

Filters must be added before the #GstDeviceMonitor is started.

class DeviceMonitor
uint
addFilter
(
string classes
,)

Parameters

classes string

device classes to use as filter or %NULL for any class

caps Caps

the #GstCaps to filter or %NULL for ANY

Return: The id of the new filter or %0 if no provider matched the filter's classes.

Meta