mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
link: also handle success case
This commit is contained in:
parent
4b4f85afe5
commit
e22762d502
1 changed files with 2 additions and 0 deletions
|
|
@ -218,6 +218,7 @@ static int do_negotiate(struct pw_link *this, uint32_t in_state, uint32_t out_st
|
|||
case -EIO:
|
||||
current = NULL;
|
||||
res = 0;
|
||||
case 1:
|
||||
break;
|
||||
case 0:
|
||||
res = -EBADF;
|
||||
|
|
@ -249,6 +250,7 @@ static int do_negotiate(struct pw_link *this, uint32_t in_state, uint32_t out_st
|
|||
case -EIO:
|
||||
current = NULL;
|
||||
res = 0;
|
||||
case 1:
|
||||
break;
|
||||
case 0:
|
||||
res = -EBADF;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue