diff --git a/spa/plugins/bluez5/bluez5-device.c b/spa/plugins/bluez5/bluez5-device.c index 1205d0fff..40db73b89 100644 --- a/spa/plugins/bluez5/bluez5-device.c +++ b/spa/plugins/bluez5/bluez5-device.c @@ -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); diff --git a/spa/plugins/bluez5/media-sink.c b/spa/plugins/bluez5/media-sink.c index 000841775..8ee8f7cfb 100644 --- a/spa/plugins/bluez5/media-sink.c +++ b/spa/plugins/bluez5/media-sink.c @@ -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)); } } diff --git a/spa/plugins/bluez5/media-source.c b/spa/plugins/bluez5/media-source.c index 536ca284f..01bb4f2fd 100644 --- a/spa/plugins/bluez5/media-source.c +++ b/spa/plugins/bluez5/media-source.c @@ -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)); } } diff --git a/src/gst/gstpipewireformat.c b/src/gst/gstpipewireformat.c index fa97d3e01..a93a3051f 100644 --- a/src/gst/gstpipewireformat.c +++ b/src/gst/gstpipewireformat.c @@ -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);