mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-03-27 07:58:16 -04:00
spa: alsa: react to "new" udev action as well
Previously, only "change" and "remove" were considered.
(cherry picked from commit 84699032be)
This commit is contained in:
parent
062a1039e9
commit
9599e7e394
1 changed files with 1 additions and 1 deletions
|
|
@ -903,7 +903,7 @@ static void impl_on_fd_events(struct spa_source *source)
|
||||||
|
|
||||||
start_inotify(this);
|
start_inotify(this);
|
||||||
|
|
||||||
if (spa_streq(action, "change")) {
|
if (spa_streq(action, "add") || spa_streq(action, "change")) {
|
||||||
process_udev_device(this, ACTION_CHANGE, udev_device);
|
process_udev_device(this, ACTION_CHANGE, udev_device);
|
||||||
} else if (spa_streq(action, "remove")) {
|
} else if (spa_streq(action, "remove")) {
|
||||||
process_udev_device(this, ACTION_REMOVE, udev_device);
|
process_udev_device(this, ACTION_REMOVE, udev_device);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue