filter-graph: handle other SOFA errors as errno

This commit is contained in:
Wim Taymans 2026-01-29 16:50:52 +01:00
parent 2aecb49f50
commit 47dd57faa7

View file

@ -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;