v4l2sink: fix issue seen with autoconvert
authorRob Clark <rob@ti.com>
Thu, 13 Jan 2011 15:43:08 +0000 (09:43 -0600)
committerLuciana Fujii Pontello <luciana.fujii@collabora.co.uk>
Mon, 27 Jun 2011 03:43:55 +0000 (00:43 -0300)
commit8d8c6ad29ee7c1aa55dbc13c07f8c3c4d89b138b
tree5908b010c3d20a7803cdd84c7a9f15c0e3623828
parenta475460c94d045a69278f5c4c86168e22f26afe4
v4l2sink: fix issue seen with autoconvert

In this scenario _set_caps() will get called earlier than _buffer_alloc()
so we need to not override the number of buffers in the case that the
upstream element answers the query about number of requested buffers.
sys/v4l2/gstv4l2sink.c