Commit 27a3696b authored by Julian Bouzas's avatar Julian Bouzas
Browse files

device: make sure child proxy is valid before doing set_param

parent 51596044
Pipeline #333888 passed with stages
in 2 minutes and 9 seconds
......@@ -342,7 +342,8 @@ spa_device_event_event (void *data, const struct spa_event *event)
child = wp_spa_device_get_managed_object (self, id);
if (child && !g_strcmp0 (type, "ObjectConfig") &&
WP_IS_PIPEWIRE_OBJECT (child) && props) {
WP_IS_PIPEWIRE_OBJECT (child) &&
wp_proxy_get_pw_proxy (WP_PROXY (child)) && props) {
wp_pipewire_object_set_param (WP_PIPEWIRE_OBJECT (child), "Props", 0,
g_steal_pointer (&props));
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment