*: Avoid macros that use casts where possible

Use direct field access when the type is known, instead of a macro that
includes a cast.

These were missed in e4fcbef89a.
This commit is contained in:
Demi Marie Obenour 2025-06-07 15:21:37 -04:00 committed by Wim Taymans
parent 5cf84fa3fe
commit b3bf5be1f6
11 changed files with 19 additions and 20 deletions

View file

@ -1585,7 +1585,7 @@ spa_v4l2_set_control(struct impl *this, uint32_t id,
if ((res = spa_v4l2_open(dev, this->props.device)) < 0)
return res;
switch (SPA_POD_TYPE(&prop->value)) {
switch (prop->value.type) {
case SPA_TYPE_Bool:
{
bool val;