mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
session-manager: do not copy stream link params if they are NULL
this field is actually unused at the moment, so it's always NULL
This commit is contained in:
parent
6aeaebe2b0
commit
1eec6c3588
1 changed files with 2 additions and 1 deletions
|
|
@ -197,7 +197,8 @@ pw_endpoint_stream_info_update (struct pw_endpoint_stream_info *info,
|
||||||
|
|
||||||
if (update->change_mask & PW_ENDPOINT_STREAM_CHANGE_MASK_LINK_PARAMS) {
|
if (update->change_mask & PW_ENDPOINT_STREAM_CHANGE_MASK_LINK_PARAMS) {
|
||||||
free(info->link_params);
|
free(info->link_params);
|
||||||
info->link_params = spa_pod_copy(update->link_params);
|
info->link_params = update->link_params ?
|
||||||
|
spa_pod_copy(update->link_params) : NULL;
|
||||||
}
|
}
|
||||||
if (update->change_mask & PW_ENDPOINT_STREAM_CHANGE_MASK_PROPS) {
|
if (update->change_mask & PW_ENDPOINT_STREAM_CHANGE_MASK_PROPS) {
|
||||||
if (!ext->props_storage) {
|
if (!ext->props_storage) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue