mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-16 08:56:45 -05:00
v4l2: map memfd when not already mapped
This commit is contained in:
parent
9b9a7411f5
commit
29dbffea52
2 changed files with 53 additions and 30 deletions
|
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue