From 8b2d8c90a263ad0202e79c4a68622de9118c01f6 Mon Sep 17 00:00:00 2001 From: George Kiagiadakis Date: Thu, 12 Dec 2019 20:08:41 +0200 Subject: [PATCH] endpoint proxy: don't try to set a control value if the proxy is destroyed --- lib/wp/endpoint.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/wp/endpoint.c b/lib/wp/endpoint.c index 556465e4..a432275f 100644 --- a/lib/wp/endpoint.c +++ b/lib/wp/endpoint.c @@ -395,6 +395,9 @@ wp_proxy_endpoint_set_control (WpEndpoint * endpoint, guint32 control_id, our spa_props will be updated by the param event */ pw_proxy = (struct pw_endpoint_proxy *) wp_proxy_get_pw_proxy (WP_PROXY (self)); + if (!pw_proxy) + return FALSE; + pw_endpoint_proxy_set_param (pw_proxy, SPA_PARAM_Props, 0, spa_pod_builder_add_object (&b,