mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-25 06:59:57 -05:00
Use graph to schedule things
Make real spa_graph nodes and ports and schedule those. This makes it possible to add explicit tee and mixers in the real graph. Rework the way we add and remove ports and nodes from the graph. Remove confusing pw_port_link and merge core with pw_link_new() Move scheduling in separate files, add some more graph-schedulers.
This commit is contained in:
parent
7297c18839
commit
d2f877912a
19 changed files with 845 additions and 428 deletions
|
|
@ -45,6 +45,14 @@ static inline void spa_list_insert(struct spa_list *list, struct spa_list *elem)
|
|||
elem->next->prev = elem;
|
||||
}
|
||||
|
||||
static inline void spa_list_insert_list(struct spa_list *list, struct spa_list *other)
|
||||
{
|
||||
other->next->prev = list;
|
||||
other->prev->next = list->next;
|
||||
list->next->prev = other->prev;
|
||||
list->next = other->next;
|
||||
}
|
||||
|
||||
static inline void spa_list_remove(struct spa_list *elem)
|
||||
{
|
||||
elem->prev->next = elem->next;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue