v4l2: add v4l2 endpoints

Monitor and add endpoints for the v4l2 nodes.
This commit is contained in:
Wim Taymans 2019-12-16 13:39:42 +01:00
parent f06fc5a62b
commit 3c846fbb1d
5 changed files with 709 additions and 11 deletions

View file

@ -643,10 +643,14 @@ static void device_update(void *data)
device->device->obj.avail, device->device->obj.changed);
if (!SPA_FLAG_IS_SET(device->device->obj.avail,
SM_DEVICE_CHANGE_MASK_INFO | SM_DEVICE_CHANGE_MASK_PARAMS))
SM_DEVICE_CHANGE_MASK_INFO |
SM_DEVICE_CHANGE_MASK_NODES |
SM_DEVICE_CHANGE_MASK_PARAMS))
return;
if (device->device->obj.changed & SM_DEVICE_CHANGE_MASK_PARAMS) {
if (SPA_FLAG_IS_SET(device->device->obj.changed,
SM_DEVICE_CHANGE_MASK_NODES |
SM_DEVICE_CHANGE_MASK_PARAMS)) {
activate_device(device);
}
}