Commit 8ecae078 authored by Wim Taymans's avatar Wim Taymans
Browse files

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).
parent 9c631842
...@@ -697,8 +697,6 @@ static int impl_port_use_buffers(void *object, ...@@ -697,8 +697,6 @@ static int impl_port_use_buffers(void *object,
for (i = 0; i < n_buffers; i++) { for (i = 0; i < n_buffers; i++) {
struct buffer *b = &port->buffers[i]; struct buffer *b = &port->buffers[i];
b->flags = 0;
b->id = i;
b->this.buffer = buffers[i]; b->this.buffer = buffers[i];
if (port->direction == SPA_DIRECTION_OUTPUT) { if (port->direction == SPA_DIRECTION_OUTPUT) {
......
...@@ -689,8 +689,6 @@ static int impl_port_use_buffers(void *object, ...@@ -689,8 +689,6 @@ static int impl_port_use_buffers(void *object,
for (i = 0; i < n_buffers; i++) { for (i = 0; i < n_buffers; i++) {
struct buffer *b = &impl->buffers[i]; struct buffer *b = &impl->buffers[i];
b->flags = 0;
b->id = i;
b->this.buffer = buffers[i]; b->this.buffer = buffers[i];
if (impl->direction == SPA_DIRECTION_OUTPUT) { if (impl->direction == SPA_DIRECTION_OUTPUT) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment