stream: only call early process for output streams

Input driver streams don't need their process callback called before
starting the graph, they will get their process callback called at the
end of the graph cycle. We were doing this for the rt case fine but not
for the non-rt case.
This commit is contained in:
Wim Taymans 2024-09-16 18:35:08 +02:00
parent 0f08f54ef3
commit 6189bf1e73

View file

@ -2594,7 +2594,7 @@ int pw_stream_trigger_process(struct pw_stream *stream)
if (impl->trigger) {
pw_impl_node_trigger(stream->node);
} else if (impl->driving) {
if (!impl->process_rt)
if (impl->direction == SPA_DIRECTION_OUTPUT && !impl->process_rt)
call_process(impl);
res = pw_loop_invoke(impl->data_loop,
do_trigger_driver, 1, NULL, 0, false, impl);