mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
client-node: keep port buffers in special location
Keep the output port buffers in a special mix info. They should stay there even when the mix is removed and should only be cleared explicitly with a NULL Format or 0 use_buffers.
This commit is contained in:
parent
96ba0fbdeb
commit
0af87d2685
2 changed files with 9 additions and 4 deletions
|
|
@ -169,6 +169,7 @@ static int spa_v4l2_clear_buffers(struct impl *this)
|
|||
d[0].maxsize - d[0].mapoffset);
|
||||
}
|
||||
if (SPA_FLAG_CHECK(b->flags, BUFFER_FLAG_ALLOCATED)) {
|
||||
spa_log_debug(this->log, "v4l2: close %d", (int) d[0].fd);
|
||||
close(d[0].fd);
|
||||
}
|
||||
d[0].type = SPA_ID_INVALID;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue