pipewire-v4l2: More improvements

Keep separate map for fd to files so we can implement dup.

Filter out duplicates in enumfmt.

tryfmt should return the closest match.

Use pthread_once to init the global state.

Make things mostly work in GStreamer.
This commit is contained in:
Wim Taymans 2021-10-09 19:12:30 +02:00
parent 8175c8276d
commit 3ee852b808
3 changed files with 388 additions and 265 deletions

View file

@ -35,4 +35,4 @@ struct fops {
int (*munmap)(void *addr, size_t length);
};
extern const struct fops fops;
const struct fops *get_fops(void);