stream: don't call process when we have no buffers

This commit is contained in:
Wim Taymans 2023-06-23 11:43:05 +02:00
parent 0fb99d4421
commit 5578afa7de

View file

@ -453,7 +453,8 @@ do_call_process(struct spa_loop *loop,
static inline void call_process(struct stream *impl)
{
pw_log_trace_fp("%p: call process rt:%u", impl, impl->process_rt);
if (impl->direction == SPA_DIRECTION_OUTPUT && update_requested(impl) <= 0)
if (impl->n_buffers == 0 ||
(impl->direction == SPA_DIRECTION_OUTPUT && update_requested(impl) <= 0))
return;
if (impl->process_rt) {
if (impl->rt_callbacks.funcs)