mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-03-27 07:58:16 -04:00
filter-graph: handle other SOFA errors as errno
This commit is contained in:
parent
2aecb49f50
commit
47dd57faa7
1 changed files with 4 additions and 1 deletions
|
|
@ -168,11 +168,14 @@ static void * spatializer_instantiate(const struct spa_fga_plugin *plugin, const
|
||||||
reason = "Only sources with MC supported";
|
reason = "Only sources with MC supported";
|
||||||
errno = ENOTSUP;
|
errno = ENOTSUP;
|
||||||
break;
|
break;
|
||||||
default:
|
|
||||||
case MYSOFA_INTERNAL_ERROR:
|
case MYSOFA_INTERNAL_ERROR:
|
||||||
errno = EIO;
|
errno = EIO;
|
||||||
reason = "Internal error";
|
reason = "Internal error";
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
errno = ret;
|
||||||
|
reason = strerror(errno);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
spa_log_error(impl->log, "Unable to load HRTF from %s: %s (%d)", filename, reason, ret);
|
spa_log_error(impl->log, "Unable to load HRTF from %s: %s (%d)", filename, reason, ret);
|
||||||
goto error;
|
goto error;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue