mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-01-10 11:08:44 -05:00
link: use DISABLED flag on port of inactive links
Don't unlink the ports of an inactive link because then it might be possible that the scheduler can't recycle a buffer, instead use a port flag to mark the ports disabled and change to scheduler to skip those ports.
This commit is contained in:
parent
a8fa4383a1
commit
0eb44b340a
6 changed files with 16 additions and 9 deletions
|
|
@ -60,7 +60,7 @@ struct spa_graph_node {
|
|||
struct spa_graph *graph; /**< owner graph */
|
||||
struct spa_list ports[2]; /**< list of input and output ports */
|
||||
struct spa_list ready_link; /**< link for scheduler */
|
||||
#define SPA_GRAPH_NODE_FLAG_ASYNC (1 << 0)
|
||||
#define SPA_GRAPH_NODE_FLAG_ASYNC (1 << 0)
|
||||
uint32_t flags; /**< node flags */
|
||||
uint32_t required[2]; /**< required number of ports */
|
||||
uint32_t ready[2]; /**< number of ports with data */
|
||||
|
|
@ -74,6 +74,7 @@ struct spa_graph_port {
|
|||
struct spa_graph_node *node; /**< owner node */
|
||||
enum spa_direction direction; /**< port direction */
|
||||
uint32_t port_id; /**< port id */
|
||||
#define SPA_GRAPH_PORT_FLAG_DISABLED (1 << 0)
|
||||
uint32_t flags; /**< port flags */
|
||||
struct spa_io_buffers *io; /**< io area of the port */
|
||||
struct spa_graph_port *peer; /**< peer */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue