mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
v4l2: add v4l2 endpoints
Monitor and add endpoints for the v4l2 nodes.
This commit is contained in:
parent
f06fc5a62b
commit
3c846fbb1d
5 changed files with 709 additions and 11 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue