Skip to content

Commit 1f2c450

Browse files
committed
[media] vb2-core: call threadio->fnc() if !VB2_BUF_STATE_ERROR
changeset 70433a1 ("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: [email protected] # Kernel >= 4.3 Signed-off-by: Mauro Carvalho Chehab <[email protected]>
1 parent fac710e commit 1f2c450

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/media/v4l2-core/videobuf2-core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2742,7 +2742,7 @@ static int vb2_thread(void *data)
27422742
break;
27432743
try_to_freeze();
27442744

2745-
if (vb->state == VB2_BUF_STATE_DONE)
2745+
if (vb->state != VB2_BUF_STATE_ERROR)
27462746
if (threadio->fnc(vb, threadio->priv))
27472747
break;
27482748
call_void_qop(q, wait_finish, q);

0 commit comments

Comments
 (0)