spa: v4l2: Remove start_watching_device() loop from start_inotify()

Now that start_monitor() (which calls start_inotify()) is called before
enum_devices() it no longer is necessary to call start_watching_device()
for devices which have been enumerated before start_inotify() gets
called (since there will not be any such devices anymore).

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
(cherry picked from commit 46f89d8009)
This commit is contained in:
Hans de Goede 2024-08-07 19:19:53 +02:00 committed by Robert Mader
parent 17e6d88a6e
commit d679ea840f

View file

@ -477,9 +477,6 @@ static int start_inotify(struct impl *this)
spa_loop_add_source(this->main_loop, &this->notify);
for (size_t i = 0; i < this->n_devices; i++)
start_watching_device(this, &this->devices[i]);
return 0;
}