v4l2: map memfd when not already mapped

This commit is contained in:
Wim Taymans 2018-02-12 11:04:28 +01:00
parent 9b9a7411f5
commit 29dbffea52
2 changed files with 53 additions and 30 deletions

View file

@ -56,11 +56,14 @@ static void reset_props(struct props *props)
#define MAX_BUFFERS 64
#define BUFFER_FLAG_OUTSTANDING (1<<0)
#define BUFFER_FLAG_ALLOCATED (1<<1)
#define BUFFER_FLAG_MAPPED (1<<2)
struct buffer {
struct spa_buffer *outbuf;
struct spa_meta_header *h;
bool outstanding;
bool allocated;
uint32_t flags;
struct v4l2_buffer v4l2_buffer;
};