mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-06 13:30:01 -05:00
defs: remove invalid direction
Anything not in the enum is invalid
This commit is contained in:
parent
1079d433ef
commit
b80fc0b08e
3 changed files with 4 additions and 6 deletions
|
|
@ -62,12 +62,12 @@ const char *
|
|||
pinos_direction_as_string (PinosDirection direction)
|
||||
{
|
||||
switch (direction) {
|
||||
case PINOS_DIRECTION_INVALID:
|
||||
return "invalid";
|
||||
case PINOS_DIRECTION_INPUT:
|
||||
return "input";
|
||||
case PINOS_DIRECTION_OUTPUT:
|
||||
return "output";
|
||||
default:
|
||||
return "invalid";
|
||||
}
|
||||
return "invalid-direction";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue