mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-02-25 01:40:36 -05:00
impl-link: prepare a link right after creating it
There is no reason to delay preparing the link (by the scheduler) when both nodes are active, we can do that right from the start. This makes things a bit more symetrical because deactivating a node does not unprepare a link. This however changes things a bit because you can no longer delay link prepare until you activate the node. I don't know if this is actually in use and it would probably be to delay format negotiation. The right way do delay format negotiation is to wait until an EnumFormat is set but that is something to improve later.
This commit is contained in:
parent
5bd93b97ad
commit
8f3d8d77ab
3 changed files with 3 additions and 22 deletions
|
|
@ -241,8 +241,6 @@ static int collect_nodes(struct pw_context *context, struct pw_impl_node *node,
|
|||
if (!t->active)
|
||||
continue;
|
||||
|
||||
pw_impl_link_prepare(l);
|
||||
|
||||
if (!l->prepared)
|
||||
continue;
|
||||
|
||||
|
|
@ -262,8 +260,6 @@ static int collect_nodes(struct pw_context *context, struct pw_impl_node *node,
|
|||
if (!t->active)
|
||||
continue;
|
||||
|
||||
pw_impl_link_prepare(l);
|
||||
|
||||
if (!l->prepared)
|
||||
continue;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue