diff --git a/lib/wp/endpoint-link.c b/lib/wp/endpoint-link.c index d5ba02cd..b341e4bc 100644 --- a/lib/wp/endpoint-link.c +++ b/lib/wp/endpoint-link.c @@ -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 * diff --git a/lib/wp/endpoint-stream.c b/lib/wp/endpoint-stream.c index dff6940a..a84bf945 100644 --- a/lib/wp/endpoint-stream.c +++ b/lib/wp/endpoint-stream.c @@ -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 * diff --git a/lib/wp/endpoint.c b/lib/wp/endpoint.c index 2ee68f45..1017992f 100644 --- a/lib/wp/endpoint.c +++ b/lib/wp/endpoint.c @@ -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 * diff --git a/lib/wp/session.c b/lib/wp/session.c index d150ba28..68b62106 100644 --- a/lib/wp/session.c +++ b/lib/wp/session.c @@ -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 *