mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-05-13 23:50:29 -04:00
fix some compilation problems
This commit is contained in:
parent
3813f64a27
commit
e286061df4
4 changed files with 13 additions and 13 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue