spa: fix a C++ typecast warning

void* cannot be automatically type-casted so let's do this explicitly.

../spa/include/spa/param/latency-utils.h: In function ‘spa_pod* spa_latency_build(spa_pod_builder*, uint32_t, const spa_latency_info*)’:
../spa/include/spa/pod/builder.h:651:1: error: invalid conversion from ‘void*’ to ‘spa_pod*’ [-fpermissive]
This commit is contained in:
Peter Hutterer 2021-06-04 13:45:52 +10:00
parent 3332e271be
commit a179e0fecd

View file

@ -99,7 +99,7 @@ spa_latency_parse(const struct spa_pod *latency, struct spa_latency_info *info)
static inline struct spa_pod *
spa_latency_build(struct spa_pod_builder *builder, uint32_t id, const struct spa_latency_info *info)
{
return spa_pod_builder_add_object(builder,
return (struct spa_pod *)spa_pod_builder_add_object(builder,
SPA_TYPE_OBJECT_ParamLatency, id,
SPA_PARAM_LATENCY_direction, SPA_POD_Id(info->direction),
SPA_PARAM_LATENCY_minQuantum, SPA_POD_Float(info->min_quantum),