mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-04-17 21:00:37 +02:00
object-manager: do not accept globals without a WpProxy subclass
This commit is contained in:
parent
6aba49f9e3
commit
a7d657a196
1 changed files with 5 additions and 0 deletions
|
|
@ -676,6 +676,11 @@ wp_object_manager_add_global (WpObjectManager * self, WpGlobal * global)
|
|||
{
|
||||
WpProxyFeatures features = 0;
|
||||
|
||||
/* do not allow proxies that don't have a defined subclass;
|
||||
bind will fail because proxy_class->pw_iface_type is NULL */
|
||||
if (global->type == WP_TYPE_PROXY)
|
||||
return;
|
||||
|
||||
if (wp_object_manager_is_interested_in_global (self, global, &features)) {
|
||||
g_autoptr (WpCore) core = g_weak_ref_get (&self->core);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue