Revert "lib: return empty WpProperties if the info struct has no properties on SM objects"

This reverts commit 917a019b01.
This commit is contained in:
George Kiagiadakis 2020-06-01 18:29:28 +03:00
parent 917a019b01
commit d8a42d2ec3
4 changed files with 4 additions and 8 deletions

View file

@ -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 *

View file

@ -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 *

View file

@ -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 *

View file

@ -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 *