mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-02-08 14:00:29 +01:00
Revert "lib: return empty WpProperties if the info struct has no properties on SM objects"
This reverts commit 917a019b01.
This commit is contained in:
parent
917a019b01
commit
d8a42d2ec3
4 changed files with 4 additions and 8 deletions
|
|
@ -82,8 +82,7 @@ wp_endpoint_link_get_properties (WpProxy * proxy)
|
|||
WpEndpointLink *self = WP_ENDPOINT_LINK (proxy);
|
||||
WpEndpointLinkPrivate *priv = wp_endpoint_link_get_instance_private (self);
|
||||
|
||||
return priv->properties ?
|
||||
wp_properties_ref (priv->properties) : wp_properties_new_empty ();
|
||||
return wp_properties_ref (priv->properties);
|
||||
}
|
||||
|
||||
static struct spa_param_info *
|
||||
|
|
|
|||
|
|
@ -80,8 +80,7 @@ wp_endpoint_stream_get_properties (WpProxy * proxy)
|
|||
WpEndpointStream *self = WP_ENDPOINT_STREAM (proxy);
|
||||
WpEndpointStreamPrivate *priv = wp_endpoint_stream_get_instance_private (self);
|
||||
|
||||
return priv->properties ?
|
||||
wp_properties_ref (priv->properties) : wp_properties_new_empty ();
|
||||
return wp_properties_ref (priv->properties);
|
||||
}
|
||||
|
||||
static struct spa_param_info *
|
||||
|
|
|
|||
|
|
@ -173,8 +173,7 @@ wp_endpoint_get_properties (WpProxy * proxy)
|
|||
WpEndpoint *self = WP_ENDPOINT (proxy);
|
||||
WpEndpointPrivate *priv = wp_endpoint_get_instance_private (self);
|
||||
|
||||
return priv->properties ?
|
||||
wp_properties_ref (priv->properties) : wp_properties_new_empty ();
|
||||
return wp_properties_ref (priv->properties);
|
||||
}
|
||||
|
||||
static struct spa_param_info *
|
||||
|
|
|
|||
|
|
@ -193,8 +193,7 @@ wp_session_get_properties (WpProxy * proxy)
|
|||
WpSession *self = WP_SESSION (proxy);
|
||||
WpSessionPrivate *priv = wp_session_get_instance_private (self);
|
||||
|
||||
return priv->properties ?
|
||||
wp_properties_ref (priv->properties) : wp_properties_new_empty ();
|
||||
return wp_properties_ref (priv->properties);
|
||||
}
|
||||
|
||||
static struct spa_param_info *
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue