mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-06 13:30:01 -05:00
fix switch fallthrough cases
This commit is contained in:
parent
9573b24e52
commit
7cd55c2c6b
3 changed files with 6 additions and 1 deletions
|
|
@ -225,10 +225,12 @@ static int do_negotiate(struct pw_link *this, uint32_t in_state, uint32_t out_st
|
|||
case -EIO:
|
||||
current = NULL;
|
||||
res = 0;
|
||||
/* fallthrough */
|
||||
case 1:
|
||||
break;
|
||||
case 0:
|
||||
res = -EBADF;
|
||||
/* fallthrough */
|
||||
default:
|
||||
asprintf(&error, "error get output format: %s", spa_strerror(res));
|
||||
goto error;
|
||||
|
|
@ -258,10 +260,12 @@ static int do_negotiate(struct pw_link *this, uint32_t in_state, uint32_t out_st
|
|||
case -EIO:
|
||||
current = NULL;
|
||||
res = 0;
|
||||
/* fallthrough */
|
||||
case 1:
|
||||
break;
|
||||
case 0:
|
||||
res = -EBADF;
|
||||
/* fallthrough */
|
||||
default:
|
||||
asprintf(&error, "error get input format: %s", spa_strerror(res));
|
||||
goto error;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue