object-interest: add support for session item properties

This commit is contained in:
Julian Bouzas 2021-03-18 13:21:56 -04:00
parent 3aef916d51
commit 17873c3ace

View file

@ -15,6 +15,7 @@
#include "object-interest.h"
#include "global-proxy.h"
#include "session-item.h"
#include "proxy-interfaces.h"
#include "debug.h"
#include "error.h"
@ -781,6 +782,11 @@ wp_object_interest_matches_full (WpObjectInterest * self,
if (wp_object_get_active_features (oo) & WP_PIPEWIRE_OBJECT_FEATURE_INFO)
pw_props = props = wp_pipewire_object_get_properties (pwo);
}
if (!pw_global_props && WP_IS_SESSION_ITEM (object)) {
WpSessionItem *si = (WpSessionItem *) object;
pw_global_props = props = wp_session_item_get_properties (si);
}
}
/* check all constraints; if any of them fails at any point, fail the match */