mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
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:
parent
241a6165d2
commit
f7d32e78f2
5 changed files with 5 additions and 10 deletions
|
|
@ -268,7 +268,7 @@ static int impl_node_set_param(void *object, uint32_t id, uint32_t flags,
|
|||
SPA_PARAM_PORT_CONFIG_format, SPA_POD_Pod(&format)) < 0)
|
||||
return -EINVAL;
|
||||
|
||||
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 (mode != SPA_PARAM_PORT_CONFIG_MODE_dsp)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue