impl-node: handle ready callback correctly

Only stop processing the ready callback if we are a driver and not currently
driving the graph.

Streams that use trigger will also emit the ready callback and are not
driving the graph (but also are not a driver) and should therefore be
allowed to continue to resume_node to schedule the peer nodes.

See #3184
This commit is contained in:
Wim Taymans 2023-05-01 09:19:19 +02:00
parent a6481c48aa
commit 64235419a6

View file

@ -1772,7 +1772,7 @@ again:
pw_context_driver_emit_start(node->context, node);
}
if (SPA_UNLIKELY(!node->driving))
if (SPA_UNLIKELY(node->driver && !node->driving))
return 0;
if (status & SPA_STATUS_HAVE_DATA) {