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:
Wim Taymans 2024-11-20 10:17:37 +01:00
parent 48ad0861e4
commit 8bfdd3c24a
4 changed files with 4 additions and 4 deletions

View file

@ -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))