mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-07 13:30:09 -05:00
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:
parent
3332e271be
commit
a179e0fecd
1 changed files with 1 additions and 1 deletions
|
|
@ -99,7 +99,7 @@ spa_latency_parse(const struct spa_pod *latency, struct spa_latency_info *info)
|
||||||
static inline struct spa_pod *
|
static inline struct spa_pod *
|
||||||
spa_latency_build(struct spa_pod_builder *builder, uint32_t id, const struct spa_latency_info *info)
|
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_TYPE_OBJECT_ParamLatency, id,
|
||||||
SPA_PARAM_LATENCY_direction, SPA_POD_Id(info->direction),
|
SPA_PARAM_LATENCY_direction, SPA_POD_Id(info->direction),
|
||||||
SPA_PARAM_LATENCY_minQuantum, SPA_POD_Float(info->min_quantum),
|
SPA_PARAM_LATENCY_minQuantum, SPA_POD_Float(info->min_quantum),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue