pod: avoid child size check

This will give us 0 children later and is not a problem for this
function.
This commit is contained in:
Wim Taymans 2025-07-30 11:02:00 +02:00
parent 847982eb0e
commit 2c11f65701

View file

@ -327,8 +327,6 @@ SPA_API_POD_BODY int spa_pod_body_get_choice(const struct spa_pod *pod, const vo
return -EINVAL;
choice->pod = *pod;
memcpy(&choice->body, body, sizeof(struct spa_pod_choice_body));
if (choice->pod.size - sizeof(struct spa_pod_choice_body) < choice->body.child.size)
return -EINVAL;
*choice_body = SPA_PTROFF(body, sizeof(struct spa_pod_choice_body), void);
return 0;
}