V4L/DVB (12134): vivi: bug: don't assume that S_STD will be called before streaming
authorMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 25 Jun 2009 19:28:23 +0000 (16:28 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 5 Jul 2009 13:05:10 +0000 (10:05 -0300)
precalculate_bars() improved vivi performance. However, it assumed that
always before streaming, the driver would call VIDIOC_S_STD. This is not
an API requirement, and the testing apps don't do that.

Due to that, a regression were caused by the patch that added it.

This patch moves the precalculate_bars to the proper place of the code,
calling it at buffer_prepare() callback.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

No differences found