diff options
author | Aurélien Zanelli <aurelien.zanelli@parrot.com> | 2014-09-04 18:35:46 +0200 |
---|---|---|
committer | Nicolas Dufresne <nicolas.dufresne@collabora.co.uk> | 2014-09-09 18:39:23 -0400 |
commit | 3afec4dd0167e6abd4aa145a043200885acc15f6 (patch) | |
tree | b592db1d8b785d85090ced4a6ef14e3330554a44 /sys/v4l2/gstv4l2object.h | |
parent | d9a7954dc929b91fcd3a397917cbeebfd6d09f8f (diff) |
v4l2: set min_latency for output device according to required minimum number of buffers
Since we can get the minimum number of buffers needed by an output
device to work, use it to set min_latency which will determine how many
buffers are queued.
https://bugzilla.gnome.org/show_bug.cgi?id=736072
Diffstat (limited to 'sys/v4l2/gstv4l2object.h')
-rw-r--r-- | sys/v4l2/gstv4l2object.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/v4l2/gstv4l2object.h b/sys/v4l2/gstv4l2object.h index c13cd6456..141f62df7 100644 --- a/sys/v4l2/gstv4l2object.h +++ b/sys/v4l2/gstv4l2object.h @@ -121,6 +121,9 @@ struct _GstV4l2Object { * calculate the minimum latency of a m2m decoder. */ guint32 min_buffers_for_capture; + /* This will be set if supported in propose allocation. */ + guint32 min_buffers_for_output; + /* wanted mode */ GstV4l2IOMode req_mode; |