mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-04-28 06:46:42 -04:00
core: use %u format specifier for uint32_t IDs
The object, node, client, factory, module, and link IDs are all uint32_t values but were being formatted with %d. This would produce incorrect negative values if an ID ever exceeded INT_MAX
This commit is contained in:
parent
35cbd2e56a
commit
b4457b871f
26 changed files with 51 additions and 51 deletions
|
|
@ -1760,8 +1760,8 @@ static bool do_create_link(struct data *data, const char *cmd, char *args, char
|
|||
if (!global_port_out || !global_port_in)
|
||||
continue;
|
||||
|
||||
pw_properties_setf(props, PW_KEY_LINK_OUTPUT_PORT, "%d", global_port_out->id);
|
||||
pw_properties_setf(props, PW_KEY_LINK_INPUT_PORT, "%d", global_port_in->id);
|
||||
pw_properties_setf(props, PW_KEY_LINK_OUTPUT_PORT, "%u", global_port_out->id);
|
||||
pw_properties_setf(props, PW_KEY_LINK_INPUT_PORT, "%u", global_port_in->id);
|
||||
|
||||
create_link_with_properties(data, props);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue