pod: remove SPA_POD_IS_OBJECT_TYPE

We have a safer version of that in iter.h
Use macros to get id and type of an object
Use safer checks in plugins.
This commit is contained in:
Wim Taymans 2019-10-29 10:08:46 +01:00
parent 241a6165d2
commit f7d32e78f2
5 changed files with 5 additions and 10 deletions

View file

@ -710,7 +710,7 @@ static int impl_node_set_param(void *object, uint32_t id, uint32_t flags,
return -EINVAL;
if (format) {
if (!SPA_POD_IS_OBJECT_TYPE(format, SPA_TYPE_OBJECT_Format))
if (!spa_pod_is_object_type(format, SPA_TYPE_OBJECT_Format))
return -EINVAL;
if ((res = spa_format_parse(format, &info.media_type, &info.media_subtype)) < 0)