mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
null-sink: fix null sink scheduling
The null sink pulls in data and provides data after it got the data in _process. See #472 #442
This commit is contained in:
parent
0f528dc73c
commit
c6f94def08
1 changed files with 2 additions and 3 deletions
|
|
@ -242,8 +242,7 @@ static void on_timeout(struct spa_source *source)
|
|||
this->clock->next_nsec = this->next_time;
|
||||
}
|
||||
|
||||
spa_node_call_ready(&this->callbacks,
|
||||
SPA_STATUS_HAVE_DATA | SPA_STATUS_NEED_DATA);
|
||||
spa_node_call_ready(&this->callbacks, SPA_STATUS_NEED_DATA);
|
||||
|
||||
set_timer(this, this->next_time);
|
||||
}
|
||||
|
|
@ -659,7 +658,7 @@ static int impl_node_process(void *object)
|
|||
io->status = -EINVAL;
|
||||
return io->status;
|
||||
}
|
||||
io->status = SPA_STATUS_NEED_DATA;
|
||||
io->status = SPA_STATUS_OK;
|
||||
return SPA_STATUS_HAVE_DATA;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue