[media] v4l2-mem2mem: clear m2m queue ready counter in v4l2_m2m_streamoff
authorPhilipp Zabel <p.zabel@pengutronix.de>
Thu, 19 Sep 2013 07:53:21 +0000 (04:53 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Mon, 28 Oct 2013 17:20:48 +0000 (15:20 -0200)
commit84e680980917df60210af713e39400752dc4763d
treef2a011411af8c4cb3b7e18c2b5fca0239b62045c
parentd7bb0ce8884b3515abd8d4dc3e3500f9a9beeab6
[media] v4l2-mem2mem: clear m2m queue ready counter in v4l2_m2m_streamoff

v4l2_m2m_streamoff drops the list of ready buffers but failed to reset the
num_rdy counter to zero. This would lead to v4l2_m2m_num_src/dst_bufs_ready
reporting wrong values after streamoff.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Kamil Debski <k.debski@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/v4l2-core/v4l2-mem2mem.c