mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-05-27 21:37:37 -04:00
alsa: clean up the impl on errors
This commit is contained in:
parent
517b6c3778
commit
7254b8288f
1 changed files with 1 additions and 1 deletions
|
|
@ -1971,7 +1971,7 @@ impl_init(const struct spa_handle_factory *factory, struct spa_handle *handle,
|
||||||
if (spa_streq(k, SPA_KEY_API_ALSA_PATH)) {
|
if (spa_streq(k, SPA_KEY_API_ALSA_PATH)) {
|
||||||
snprintf(this->props.device, sizeof(this->props.device), "%s", s);
|
snprintf(this->props.device, sizeof(this->props.device), "%s", s);
|
||||||
if ((res = parse_device(this)) < 0)
|
if ((res = parse_device(this)) < 0)
|
||||||
return res;
|
goto error;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue