mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
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. |
||
|---|---|---|
| .. | ||
| meson.build | ||
| v4l2-device.c | ||
| v4l2-source.c | ||
| v4l2-udev.c | ||
| v4l2-utils.c | ||
| v4l2.c | ||
| v4l2.h | ||