Skip to content

Commit

Permalink
Set correct output buffer type in vidioc_dqbuf
Browse files Browse the repository at this point in the history
When userspace dequeues an output buffer from the driver, that buffer should
have type V4L2_BUF_TYPE_VIDEO_OUTPUT. Previously we were providing the type
from our internal buffer which is V4L2_BUF_TYPE_VIDEO_CAPTURE.
  • Loading branch information
amcinnes committed Oct 25, 2013
1 parent 18fca0a commit 523adfd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions v4l2loopback.c
Original file line number Diff line number Diff line change
Expand Up @@ -1553,6 +1553,7 @@ static int vidioc_dqbuf(struct file *file, void *private_data, struct v4l2_buffe
dprintkrw("output DQBUF index: %d\n", b->buffer.index);
unset_flags(b);
*buf = b->buffer;
buf->type = V4L2_BUF_TYPE_VIDEO_OUTPUT;
return 0;
default:
return -EINVAL;
Expand Down

0 comments on commit 523adfd

Please sign in to comment.