pod: be more careful with bool

This commit is contained in:
Wim Taymans 2020-01-15 18:10:54 +01:00
parent 4169d9196d
commit 919656aba3
3 changed files with 3 additions and 3 deletions

View file

@ -151,7 +151,7 @@ static inline int spa_pod_get_bool(const struct spa_pod *pod, bool *value)
{
if (!spa_pod_is_bool(pod))
return -EINVAL;
*value = SPA_POD_VALUE(struct spa_pod_bool, pod);
*value = !!SPA_POD_VALUE(struct spa_pod_bool, pod);
return 0;
}