mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
spa: v4l2: Remove start_inotify() call from impl_on_fd_events()
The spa_loop_add_source() call for udev event monitoring which uses impl_on_fd_events() is done from start_monitor() which also unconditionally calls start_inotify(). Since start_monitor() already always calls start_inotify() there is no scenario where start_inotify() has not been called yet when impl_on_fd_events() gets called. So the start_inotify() call in impl_on_fd_events() is redundant, remove it. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
This commit is contained in:
parent
b1e8e218d6
commit
ab245947e5
1 changed files with 0 additions and 2 deletions
|
|
@ -495,8 +495,6 @@ static void impl_on_fd_events(struct spa_source *source)
|
|||
|
||||
spa_log_debug(this->log, "action %s", action);
|
||||
|
||||
start_inotify(this);
|
||||
|
||||
if (spa_streq(action, "add") ||
|
||||
spa_streq(action, "change")) {
|
||||
process_udev_device(this, ACTION_CHANGE, dev);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue