fix some compilation problems

This commit is contained in:
Wim Taymans 2026-05-11 11:59:54 +02:00
parent 3813f64a27
commit e286061df4
4 changed files with 13 additions and 13 deletions

View file

@ -410,7 +410,7 @@ static void emit_node_props(struct impl *this, struct node *node, bool full)
SPA_PROP_latencyOffsetNsec, SPA_POD_Long(node->latency_offset),
0);
}
event = spa_pod_builder_pop(&b, &f[0]);
event = (struct spa_event*)spa_pod_builder_pop(&b, &f[0]);
spa_device_emit_event(&this->hooks, event);
}
@ -929,7 +929,7 @@ static void dynamic_node_volume_changed(void *data)
spa_pod_builder_add_object(&b,
SPA_TYPE_OBJECT_Props, SPA_EVENT_DEVICE_Props,
SPA_PROP_volume, SPA_POD_Float(t_volume->volume));
event = spa_pod_builder_pop(&b, &f[0]);
event = (struct spa_event*)spa_pod_builder_pop(&b, &f[0]);
spa_log_debug(impl->log, "dynamic node %d: volume %d changed %f, profile %d",
node->id, volume_id, t_volume->volume, node->transport->profile);
@ -3144,7 +3144,7 @@ static int node_set_mute(struct impl *this, struct node *node, bool mute)
SPA_TYPE_OBJECT_Props, SPA_EVENT_DEVICE_Props,
SPA_PROP_mute, SPA_POD_Bool(mute),
SPA_PROP_softMute, SPA_POD_Bool(mute));
event = spa_pod_builder_pop(&b, &f[0]);
event = (struct spa_event*)spa_pod_builder_pop(&b, &f[0]);
spa_device_emit_event(&this->hooks, event);
@ -3174,7 +3174,7 @@ static int node_set_latency_offset(struct impl *this, struct node *node, int64_t
spa_pod_builder_add_object(&b,
SPA_TYPE_OBJECT_Props, SPA_EVENT_DEVICE_Props,
SPA_PROP_latencyOffsetNsec, SPA_POD_Long(latency_offset));
event = spa_pod_builder_pop(&b, &f[0]);
event = (struct spa_event*)spa_pod_builder_pop(&b, &f[0]);
spa_device_emit_event(&this->hooks, event);

View file

@ -2485,7 +2485,7 @@ static void transport_state_changed(void *data,
spa_pod_builder_init(&b, buffer, sizeof(buffer));
spa_node_emit_event(&this->hooks,
spa_pod_builder_add_object(&b,
(struct spa_event*)spa_pod_builder_add_object(&b,
SPA_TYPE_EVENT_Node, SPA_NODE_EVENT_Error));
}
}

View file

@ -2046,7 +2046,7 @@ static void transport_state_changed(void *data,
spa_pod_builder_init(&b, buffer, sizeof(buffer));
spa_node_emit_event(&this->hooks,
spa_pod_builder_add_object(&b,
(struct spa_event*)spa_pod_builder_add_object(&b,
SPA_TYPE_EVENT_Node, SPA_NODE_EVENT_Error));
}
}

View file

@ -443,7 +443,7 @@ add_limits (struct spa_pod_dynamic_builder *b, ConvertData *d)
spa_pod_builder_rectangle (&b->b, v.width, v.height);
}
if (i > 0) {
choice = spa_pod_builder_pop(&b->b, &f);
choice = (struct spa_pod_choice *)spa_pod_builder_pop(&b->b, &f);
if (i == 1)
choice->body.type = SPA_CHOICE_None;
}
@ -461,7 +461,7 @@ add_limits (struct spa_pod_dynamic_builder *b, ConvertData *d)
spa_pod_builder_fraction (&b->b, v.num, v.denom);
}
if (i > 0) {
choice = spa_pod_builder_pop(&b->b, &f);
choice = (struct spa_pod_choice *)spa_pod_builder_pop(&b->b, &f);
if (i == 1)
choice->body.type = SPA_CHOICE_None;
}
@ -479,7 +479,7 @@ add_limits (struct spa_pod_dynamic_builder *b, ConvertData *d)
spa_pod_builder_fraction (&b->b, v.num, v.denom);
}
if (i > 0) {
choice = spa_pod_builder_pop(&b->b, &f);
choice = (struct spa_pod_choice *)spa_pod_builder_pop(&b->b, &f);
if (i == 1)
choice->body.type = SPA_CHOICE_None;
}
@ -719,7 +719,7 @@ handle_audio_fields (ConvertData *d)
spa_pod_builder_id (&b.b, audio_format_map[idx]);
}
if (i > 0) {
choice = spa_pod_builder_pop(&b.b, &f);
choice = (struct spa_pod_choice *)spa_pod_builder_pop(&b.b, &f);
if (i == 1)
choice->body.type = SPA_CHOICE_None;
}
@ -759,7 +759,7 @@ handle_audio_fields (ConvertData *d)
spa_pod_builder_id (&b.b, layout);
}
if (i > 0) {
choice = spa_pod_builder_pop(&b.b, &f);
choice = (struct spa_pod_choice *)spa_pod_builder_pop(&b.b, &f);
if (i == 1)
choice->body.type = SPA_CHOICE_None;
}
@ -777,7 +777,7 @@ handle_audio_fields (ConvertData *d)
spa_pod_builder_int (&b.b, v);
}
if (i > 0) {
choice = spa_pod_builder_pop(&b.b, &f);
choice = (struct spa_pod_choice *)spa_pod_builder_pop(&b.b, &f);
if (i == 1)
choice->body.type = SPA_CHOICE_None;
}
@ -794,7 +794,7 @@ handle_audio_fields (ConvertData *d)
spa_pod_builder_int (&b.b, v);
}
if (i > 0) {
choice = spa_pod_builder_pop(&b.b, &f);
choice = (struct spa_pod_choice *)spa_pod_builder_pop(&b.b, &f);
if (i == 1) {
choice->body.type = SPA_CHOICE_None;
set_default_channels (&b.b, v);