resample: fix compilation

Also fix a compiler warning in clang
This commit is contained in:
Wim Taymans 2025-07-23 12:52:27 +02:00
parent c54d3764b2
commit b52c490709
2 changed files with 4 additions and 2 deletions

View file

@ -242,6 +242,7 @@ static int add_param(struct stream *impl,
switch (id) {
case SPA_PARAM_Latency:
{
struct spa_latency_info info;
if ((res = spa_latency_parse(param, &info)) < 0)
return res;
@ -254,6 +255,7 @@ static int add_param(struct stream *impl,
return 0;
}
}
}
p = malloc(sizeof(struct param) + SPA_POD_SIZE(param));
if (p == NULL)