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:
Wim Taymans 2020-05-06 15:45:19 +02:00
parent d6b1342bab
commit 9174e5ca20

View file

@ -398,10 +398,13 @@ do { \
case 'T': \
case 'O': \
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); \
break; \
} \
default: \
break; \
} \