[media] vb2-core: call threadio->fnc() if !VB2_BUF_STATE_ERROR
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>
Wed, 3 Feb 2016 21:30:31 +0000 (19:30 -0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Thu, 4 Feb 2016 11:15:51 +0000 (09:15 -0200)
commit1f2c450185b7b8d50d38d37ee30387ff4cd337f8
tree188febdf5c1d194a7681c23787bcdb461f112768
parentfac710e45d0b12443acd4d905c9acec27ab4ca14
[media] vb2-core: call threadio->fnc() if !VB2_BUF_STATE_ERROR

changeset 70433a152f0 ("media: videobuf2: Refactor vb2_fileio_data
and vb2_thread") broke videobuf2-dvb.

The root cause is that, instead of calling threadio->fnc() for
all types of events except for VB2_BUF_STATE_ERROR, it was calling
it only for VB2_BUF_STATE_DONE.

With that, the DVB thread were never called.

Cc: stable@vger.kernel.org # Kernel >= 4.3
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/v4l2-core/videobuf2-core.c