mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-15 07:00:05 -05:00
port: copy error string in update_state
update_state will free the error string later so we need to make a copy of static strings.
This commit is contained in:
parent
b7dbf4bbc1
commit
d39dbceb2a
1 changed files with 1 additions and 1 deletions
|
|
@ -1267,7 +1267,7 @@ int pw_impl_port_use_buffers(struct pw_impl_port *port, struct pw_impl_port_mix
|
|||
pw_log_error(NAME" %p: negotiate buffers on node: %d (%s)",
|
||||
port, res, spa_strerror(res));
|
||||
pw_impl_port_update_state(port, PW_IMPL_PORT_STATE_ERROR,
|
||||
"can't negotiate buffers on port");
|
||||
strdup("can't negotiate buffers on port"));
|
||||
} else if (n_buffers > 0 && !SPA_RESULT_IS_ASYNC(res)) {
|
||||
pw_impl_port_update_state(port, PW_IMPL_PORT_STATE_PAUSED, NULL);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue