From 47dd57faa7253ba7161f4c75e6af472716566a2a Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 29 Jan 2026 16:50:52 +0100 Subject: [PATCH] filter-graph: handle other SOFA errors as errno --- spa/plugins/filter-graph/plugin_sofa.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/spa/plugins/filter-graph/plugin_sofa.c b/spa/plugins/filter-graph/plugin_sofa.c index 7ec73ea2b..14005dabd 100644 --- a/spa/plugins/filter-graph/plugin_sofa.c +++ b/spa/plugins/filter-graph/plugin_sofa.c @@ -168,11 +168,14 @@ static void * spatializer_instantiate(const struct spa_fga_plugin *plugin, const reason = "Only sources with MC supported"; errno = ENOTSUP; break; - default: case MYSOFA_INTERNAL_ERROR: errno = EIO; reason = "Internal error"; break; + default: + errno = ret; + reason = strerror(errno); + break; } spa_log_error(impl->log, "Unable to load HRTF from %s: %s (%d)", filename, reason, ret); goto error;