mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-04-30 23:57:59 +02:00
object-interest: add support for session item properties
This commit is contained in:
parent
3aef916d51
commit
17873c3ace
1 changed files with 6 additions and 0 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue