filter: ENOSPC is the error when we can't deref

This commit is contained in:
Wim Taymans 2020-04-01 12:56:17 +02:00
parent 7a29c15628
commit 558a1f0bb2

View file

@ -389,7 +389,7 @@ spa_pod_filter(struct spa_pod_builder *b,
} else if (result) { } else if (result) {
*result = (struct spa_pod*)spa_pod_builder_deref(b, state.offset); *result = (struct spa_pod*)spa_pod_builder_deref(b, state.offset);
if (*result == NULL) if (*result == NULL)
res = -EINVAL; res = -ENOSPC;
} }
return res; return res;
} }