mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
pass the right types to the methods
This currently works because we accept void* for these functions but it will fail when we will use the real types.
This commit is contained in:
parent
48ad0861e4
commit
8bfdd3c24a
4 changed files with 4 additions and 4 deletions
|
|
@ -555,7 +555,7 @@ static int set_volume_mute(snd_ctl_pipewire_t *ctl, const char *name, struct vol
|
|||
param = spa_pod_builder_pop(&b, &f[0]);
|
||||
|
||||
pw_log_debug("set device %d mute/volume for node %d", dg->id, g->id);
|
||||
pw_device_set_param((struct pw_node*)dg->proxy,
|
||||
pw_device_set_param((struct pw_device*)dg->proxy,
|
||||
SPA_PARAM_Route, 0, param);
|
||||
} else {
|
||||
if (!SPA_FLAG_IS_SET(g->permissions, PW_PERM_W | PW_PERM_X))
|
||||
|
|
|
|||
|
|
@ -3859,7 +3859,7 @@ static void registry_event_global(void *data, uint32_t id,
|
|||
pw_proxy_add_listener(proxy,
|
||||
&c->metadata->proxy_listener,
|
||||
&metadata_proxy_events, c);
|
||||
pw_metadata_add_listener(proxy,
|
||||
pw_metadata_add_listener(c->metadata->proxy,
|
||||
&c->metadata->listener,
|
||||
&metadata_events, c);
|
||||
do_sync = true;
|
||||
|
|
|
|||
|
|
@ -2326,7 +2326,7 @@ static int vidioc_s_ctrl(struct file *file, struct v4l2_control *arg)
|
|||
}
|
||||
|
||||
param = spa_pod_builder_pop(&b, &f[0]);
|
||||
pw_node_set_param(file->node->proxy, SPA_PARAM_Props, 0, param);
|
||||
pw_node_set_param((struct pw_node*)file->node->proxy, SPA_PARAM_Props, 0, param);
|
||||
|
||||
found = true;
|
||||
pw_log_info("ctrl 0x%08" PRIx32 " set ok", arg->id);
|
||||
|
|
|
|||
|
|
@ -809,7 +809,7 @@ int pw_manager_set_metadata(struct pw_manager *manager,
|
|||
value = NULL;
|
||||
}
|
||||
|
||||
pw_metadata_set_property(metadata->proxy,
|
||||
pw_metadata_set_property((struct pw_metadata*)metadata->proxy,
|
||||
subject, key, type, value);
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue