stream: don't reset flags

Or else we lose the MAPPED flag and we don't unmap (not that it's
a problem because it gets unmapped when we close the fd).
This commit is contained in:
Wim Taymans 2020-06-15 17:37:54 +02:00
parent 9c631842cb
commit 8ecae0785b
2 changed files with 0 additions and 4 deletions

View file

@ -697,8 +697,6 @@ static int impl_port_use_buffers(void *object,
for (i = 0; i < n_buffers; i++) {
struct buffer *b = &port->buffers[i];
b->flags = 0;
b->id = i;
b->this.buffer = buffers[i];
if (port->direction == SPA_DIRECTION_OUTPUT) {

View file

@ -689,8 +689,6 @@ static int impl_port_use_buffers(void *object,
for (i = 0; i < n_buffers; i++) {
struct buffer *b = &impl->buffers[i];
b->flags = 0;
b->id = i;
b->this.buffer = buffers[i];
if (impl->direction == SPA_DIRECTION_OUTPUT) {