v4l2: Cleanup and fix calculation of latency
authorNicolas Dufresne <nicolas.dufresne@collabora.co.uk>
Sun, 25 May 2014 03:31:24 +0000 (23:31 -0400)
committerNicolas Dufresne <nicolas.dufresne@collabora.co.uk>
Sun, 25 May 2014 04:04:44 +0000 (00:04 -0400)
commit66519d08b01be89431727f70e74e3ab02037c7b1
tree81e7a6dbc453ade8681646d4ccae235b8424ca87
parent2e89f4ecffb2363ffdce08fef579606698aee080
v4l2: Cleanup and fix calculation of latency

Calculation of num_buffers (the max latency in buffers) was
up-side-down.  If we can allcoate, then our maximum latency match
pool maximum number of buffers. Also renamed it to max latency. Finally
introduced a min_latency for clarity.
sys/v4l2/gstv4l2bufferpool.c
sys/v4l2/gstv4l2bufferpool.h
sys/v4l2/gstv4l2src.c