commit | dab7e3106ddd6cbc3b55301228407b9d17ce7773 | [log] [tgz] |
---|---|---|
author | Andreas Bombe <aeb@debian.org> | Sun Mar 21 16:02:45 2010 -0300 |
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | Wed May 19 12:57:13 2010 -0300 |
tree | 1b6caa87522844e7ea8cc01932365201271f1afd | |
parent | 0a062033f727dc041691bfd768f4cf0598f559a1 [diff] |
V4L/DVB: V4L2: Replace loops for finding max buffers in VIDIOC_REQBUFS callbacks Due to obvious copy and paste coding a number of video capture drivers which implement a limit on the buffer memory decremented the user supplied buffer count in a while loop until it reaches an acceptable value. This is a silly thing to do when the maximum value can be directly computed. Signed-off-by: Andreas Bombe <aeb@debian.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>