Commit 1f2c4501 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

[media] vb2-core: call threadio->fnc() if !VB2_BUF_STATE_ERROR

changeset 70433a15 ("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: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent fac710e4
...@@ -2742,7 +2742,7 @@ static int vb2_thread(void *data) ...@@ -2742,7 +2742,7 @@ static int vb2_thread(void *data)
break; break;
try_to_freeze(); try_to_freeze();
if (vb->state == VB2_BUF_STATE_DONE) if (vb->state != VB2_BUF_STATE_ERROR)
if (threadio->fnc(vb, threadio->priv)) if (threadio->fnc(vb, threadio->priv))
break; break;
call_void_qop(q, wait_finish, q); call_void_qop(q, wait_finish, q);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment