pipewire/spa/plugins/v4l2
Barnabás Pőcze 3bbccccd05 spa: v4l2: use a separate watch for each device
Instead of watching /dev, use a separate watch for each device.
This is supposed to achieve the same result as the now reverted
88f0dbd6fc ("v4l2: don't set inotify on /dev"):

  Doing inotify on /dev is not a good idea because we will be woken up by
  a lot of unrelated events.

  There is a report of a performance regression on some IO benchmark
  because of lock contention within the fsnotify subsystem due to this.

  Instead, just watch for attribute changes on the /dev/videoX files
  directly. We are only interested in attribute changes, udev should
  notify us when the file is added or removed.

Fixes #3439
2023-09-07 10:17:29 +02:00
..
meson.build treewide: meson.build: use dependency variable for SPA 2021-12-28 18:34:06 +01:00
v4l2-device.c spa: v4l2: get the device number of the v4l2 device 2023-07-19 09:21:03 +00:00
v4l2-source.c v4l2: add support fot G_CTRL 2023-04-18 16:27:55 +02:00
v4l2-udev.c spa: v4l2: use a separate watch for each device 2023-09-07 10:17:29 +02:00
v4l2-utils.c v4l2: handle ENOTTY 2023-07-04 11:36:37 +02:00
v4l2.c treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
v4l2.h treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00