mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
module-rt: add some more error to errno mappings
This commit is contained in:
parent
a20d2406c3
commit
5942f2d6aa
1 changed files with 8 additions and 1 deletions
|
|
@ -277,7 +277,14 @@ static int translate_error(const char *name)
|
|||
if (spa_streq(name, DBUS_ERROR_ACCESS_DENIED) ||
|
||||
spa_streq(name, DBUS_ERROR_AUTH_FAILED))
|
||||
return -EACCES;
|
||||
|
||||
if (spa_streq(name, DBUS_ERROR_IO_ERROR))
|
||||
return -EIO;
|
||||
if (spa_streq(name, DBUS_ERROR_NOT_SUPPORTED))
|
||||
return -ENOTSUP;
|
||||
if (spa_streq(name, DBUS_ERROR_INVALID_ARGS))
|
||||
return -EINVAL;
|
||||
if (spa_streq(name, DBUS_ERROR_TIMED_OUT))
|
||||
return -ETIMEDOUT;
|
||||
return -EIO;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue