mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-11 13:30:07 -05:00
small cleanups
This commit is contained in:
parent
3f45ccd6a5
commit
33427b4cd3
2 changed files with 4 additions and 15 deletions
|
|
@ -62,11 +62,10 @@ static inline int spa_graph_link_trigger(struct spa_graph_link *link)
|
|||
{
|
||||
struct spa_graph_state *state = link->state;
|
||||
|
||||
if (state->pending == 0) {
|
||||
spa_debug("link %p: state %p: nothing pending", link, state);
|
||||
} else {
|
||||
spa_debug("link %p: state %p: pending %d required %d", link, state,
|
||||
state->pending, state->required);
|
||||
|
||||
if (state->pending != 0) {
|
||||
if (__atomic_sub_fetch(&state->pending, 1, __ATOMIC_SEQ_CST) == 0)
|
||||
spa_graph_link_signal(link);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1138,16 +1138,6 @@ static const struct pw_node_events output_node_events = {
|
|||
.async_complete = output_node_async_complete,
|
||||
};
|
||||
|
||||
static inline void
|
||||
move_graph(struct spa_graph *dst, struct spa_graph *src)
|
||||
{
|
||||
struct spa_graph_node *n, *t;
|
||||
spa_list_for_each_safe(n, t, &src->nodes, link) {
|
||||
spa_graph_node_remove(n);
|
||||
spa_graph_node_add(dst, n);
|
||||
}
|
||||
}
|
||||
|
||||
static int find_driver(struct pw_link *this)
|
||||
{
|
||||
struct pw_node *out_driver, *in_driver;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue