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:
Wim Taymans 2019-08-15 11:49:32 +02:00
parent 96ba0fbdeb
commit 0af87d2685
2 changed files with 9 additions and 4 deletions

View file

@ -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;