diff options
author | hans@localhost.localdomain <hans@localhost.localdomain> | 2008-07-29 23:43:20 +0200 |
---|---|---|
committer | hans@localhost.localdomain <hans@localhost.localdomain> | 2008-07-29 23:43:20 +0200 |
commit | 6a8ad167499697788706490f42f2f192efb62718 (patch) | |
tree | aa86e7d664e8af49f5b3e7810dbfa4aceaf86b71 /v4l2-apps/lib/libv4l/libv4l2/libv4l2-priv.h | |
parent | 5e786b0e454373ed7282b56cd43a13503d2d98c2 (diff) | |
download | mediapointer-dvb-s2-6a8ad167499697788706490f42f2f192efb62718.tar.gz mediapointer-dvb-s2-6a8ad167499697788706490f42f2f192efb62718.tar.bz2 |
libv4l: proper accounting of mmap count of fake mmap buffers
From: Hans de Goede <j.w.r.degoede@hhs.nl>
libv4l: proper accounting of mmap count of fake mmap buffers
Signed-off-by: Hans de Goede <j.w.r.degoede@hhs.nl>
Diffstat (limited to 'v4l2-apps/lib/libv4l/libv4l2/libv4l2-priv.h')
-rw-r--r-- | v4l2-apps/lib/libv4l/libv4l2/libv4l2-priv.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/v4l2-apps/lib/libv4l/libv4l2/libv4l2-priv.h b/v4l2-apps/lib/libv4l/libv4l2/libv4l2-priv.h index 203dcffaf..fb6f9718e 100644 --- a/v4l2-apps/lib/libv4l/libv4l2/libv4l2-priv.h +++ b/v4l2-apps/lib/libv4l/libv4l2/libv4l2-priv.h @@ -88,13 +88,8 @@ struct v4l2_dev_info { unsigned char *frame_pointers[V4L2_MAX_NO_FRAMES]; int frame_sizes[V4L2_MAX_NO_FRAMES]; int frame_queued; /* 1 status bit per frame */ - /* mapping tracking of our fake (converting mmap) frame buffers, todo this - perfect we should use a map counter per frame, this is a good - approximation but there are scenarios thinkable where this doesn't work. - However no normal application not even a buggy one is likely to exhibit - the patterns needed to fail this somewhat simplified tracking */ - int frame_mapped; /* 1 status bit per frame */ - int frame_map_count; /* total number of maps of (fake) buffers combined */ + /* mapping tracking of our fake (converting mmap) frame buffers */ + unsigned char frame_map_count[V4L2_MAX_NO_FRAMES]; }; /* From log.c */ |