Skip to content

Commit 6be87ce

Browse files
Conan-KudoKontrabant
authored andcommitted
pipewire: Ensure that the correct struct is used for enumeration APIs
PipeWire now requires the correct struct type is used, otherwise it will fail to compile. Reference: https://gitlab.freedesktop.org/pipewire/pipewire/-/commit/188d920733f0791413d3386e5536ee7377f71b2f Fixes: #12224 (cherry picked from commit d35bef6)
1 parent ab44451 commit 6be87ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/audio/pipewire/SDL_pipewire.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,7 @@ static void node_event_info(void *object, const struct pw_node_info *info)
590590

591591
/* Need to parse the parameters to get the sample rate */
592592
for (i = 0; i < info->n_params; ++i) {
593-
pw_node_enum_params(node->proxy, 0, info->params[i].id, 0, 0, NULL);
593+
pw_node_enum_params((struct pw_node*)node->proxy, 0, info->params[i].id, 0, 0, NULL);
594594
}
595595

596596
hotplug_core_sync(node);

0 commit comments

Comments
 (0)