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:
George Kiagiadakis 2020-06-01 18:59:13 +03:00 committed by Wim Taymans
parent 6aeaebe2b0
commit 1eec6c3588

View file

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