mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
parser: handle SPA_POD_None() in parser
SPA_POD_None will have a NULL as the destination address of the pod value, so don't try to write to that.
This commit is contained in:
parent
d6b1342bab
commit
9174e5ca20
1 changed files with 5 additions and 2 deletions
|
|
@ -398,10 +398,13 @@ do { \
|
||||||
case 'T': \
|
case 'T': \
|
||||||
case 'O': \
|
case 'O': \
|
||||||
case 'V': \
|
case 'V': \
|
||||||
*va_arg(args, const struct spa_pod**) = \
|
{ \
|
||||||
(pod == NULL || (SPA_POD_TYPE(pod) == SPA_TYPE_None) \
|
const struct spa_pod **d = va_arg(args, const struct spa_pod**); \
|
||||||
|
if (d) \
|
||||||
|
*d = (pod == NULL || (SPA_POD_TYPE(pod) == SPA_TYPE_None) \
|
||||||
? NULL : pod); \
|
? NULL : pod); \
|
||||||
break; \
|
break; \
|
||||||
|
} \
|
||||||
default: \
|
default: \
|
||||||
break; \
|
break; \
|
||||||
} \
|
} \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue