mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
stream: implement Flush
Flush out pending samples in the resampler Set the io area status to _OK so that buffers are recycled and new buffers produced.
This commit is contained in:
parent
cd25a1e5e7
commit
79fb95bf90
8 changed files with 36 additions and 6 deletions
|
|
@ -517,6 +517,9 @@ static int impl_node_send_command(void *object, const struct spa_command *comman
|
|||
case SPA_NODE_COMMAND_Suspend:
|
||||
configure_format(this, 0, NULL);
|
||||
SPA_FALLTHROUGH
|
||||
case SPA_NODE_COMMAND_Flush:
|
||||
this->io_buffers.status = SPA_STATUS_OK;
|
||||
SPA_FALLTHROUGH
|
||||
case SPA_NODE_COMMAND_Pause:
|
||||
this->started = false;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue