mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-04-16 08:21:22 -04:00
When a node is inactive but linked to a driver, the only reason it is not being scheduled is because it is inactive. We already set up the links and negotiate the format and buffers to prepare going to RUNNING. This patch now also make the node go to IDLE, which makes the adapter negotiate a forma and buffers with the internal node. This makes things more symetrical, when linking a node, it becomes IDLE, when activating it becomes RUNNABLE, when inactive it goes back to IDLE. The switch to RUNNING will also be faster when things are already set up in the IDLE state. The main advantage is that it allows us to implement the startup of corked streams in pulseaudio better. Before this patch we had to set the stream to active to make it go through the Format and buffer negotiation and then quickly set it back to inactive, hopefully without skipping a cycle. After this patch, the corked stream goes all the way to IDLE, where it then waits to become active. See #4991 |
||
|---|---|---|
| .. | ||
| examples | ||
| include | ||
| include-private/spa-private | ||
| lib | ||
| plugins | ||
| tests | ||
| tools | ||
| meson.build | ||