m-standard-event-source: Emit 'select-collection' event for all added objects

This new event has higher priority than the 'added' event, and it is meant to
be used by hooks that collect objects into collections.
This commit is contained in:
Julian Bouzas 2025-12-10 14:55:24 -05:00
parent 155bbbfc38
commit 5a2b15c1a0

View file

@ -353,6 +353,7 @@ on_node_state_changed (WpNode *obj, WpNodeState old_state,
static void
on_object_added (WpObjectManager *om, WpObject *obj, WpStandardEventSource *self)
{
wp_standard_event_source_push_event (self, "select-collection", obj, NULL);
wp_standard_event_source_push_event (self, "added", obj, NULL);
if (WP_IS_PIPEWIRE_OBJECT (obj)) {