mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-17 07:00:03 -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
|
|
@ -42,6 +42,10 @@ extern "C" {
|
|||
#define SPA_RESULT_ASYNC_SEQ(res) ((res) & SPA_ASYNC_SEQ_MASK)
|
||||
#define SPA_RESULT_RETURN_ASYNC(seq) (SPA_ASYNC_BIT | ((seq) & SPA_ASYNC_SEQ_MASK))
|
||||
|
||||
#define SPA_FLAG_CHECK(field,flag) (((field) & (flag)) == (flag))
|
||||
#define SPA_FLAG_SET(field,flag) ((field) |= (flag))
|
||||
#define SPA_FLAG_UNSET(field,flag) ((field) &= ~(flag))
|
||||
|
||||
enum spa_direction {
|
||||
SPA_DIRECTION_INPUT = 0,
|
||||
SPA_DIRECTION_OUTPUT = 1,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue