mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
stream: don't call process when we have no buffers
This commit is contained in:
parent
0fb99d4421
commit
5578afa7de
1 changed files with 2 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue