v4l2: mark data CORRUPTED

We need to mark the data corrupted in the chunk, not buffer flags.
This commit is contained in:
Wim Taymans 2020-05-09 19:38:16 +02:00
parent 8dcd6c4417
commit 42af40675d

View file

@ -1221,7 +1221,7 @@ static int mmap_read(struct impl *this)
d[0].chunk->stride = port->fmt.fmt.pix.bytesperline;
d[0].chunk->flags = 0;
if (buf.flags & V4L2_BUF_FLAG_ERROR)
d[0].flags |= SPA_CHUNK_FLAG_CORRUPTED;
d[0].chunk->flags |= SPA_CHUNK_FLAG_CORRUPTED;
spa_list_append(&port->queue, &b->link);
return 0;