mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
alsa-seq: fix seq_open error path
If snd_seq_open fails, do not call snd_seq_close(NULL).
This commit is contained in:
parent
ee67ab9c04
commit
cb1071bce7
1 changed files with 1 additions and 1 deletions
|
|
@ -57,7 +57,7 @@ static int seq_open(struct seq_state *state, struct seq_conn *conn)
|
|||
SND_SEQ_OPEN_DUPLEX,
|
||||
0)) < 0) {
|
||||
spa_log_error(state->log, "open failed: %s", snd_strerror(res));
|
||||
goto error_exit_close;
|
||||
return res;
|
||||
}
|
||||
|
||||
/* client id */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue