mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2025-12-20 06:30:04 +01:00
object-interest: set pw_props variable if not set and global props exist
Otherwise, object manager lookups and iterations with type "pw" may not work properly.
This commit is contained in:
parent
ebd9d2a7d5
commit
a461d9e738
1 changed files with 2 additions and 0 deletions
|
|
@ -770,6 +770,8 @@ wp_object_interest_matches_full (WpObjectInterest * self,
|
||||||
if (!pw_global_props && WP_IS_SESSION_ITEM (object)) {
|
if (!pw_global_props && WP_IS_SESSION_ITEM (object)) {
|
||||||
WpSessionItem *si = (WpSessionItem *) object;
|
WpSessionItem *si = (WpSessionItem *) object;
|
||||||
pw_global_props = props = wp_session_item_get_properties (si);
|
pw_global_props = props = wp_session_item_get_properties (si);
|
||||||
|
if (!pw_props)
|
||||||
|
pw_props = props;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue