small cleanups

This commit is contained in:
Wim Taymans 2018-07-08 15:23:56 +02:00
parent 3f45ccd6a5
commit 33427b4cd3
2 changed files with 4 additions and 15 deletions

View file

@ -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);
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);
}

View file

@ -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;