Skip to content

Commit

Permalink
Return the correct number of bytes
Browse files Browse the repository at this point in the history
This is needed for Firefox to play more than one frame.  This applies
the fix from
#190 (comment).
  • Loading branch information
DemiMarie committed Jun 3, 2021
1 parent 81b8df7 commit 4b85621
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion v4l2loopback.c
Original file line number Diff line number Diff line change
Expand Up @@ -1623,7 +1623,7 @@ static int vidioc_qbuf(struct file *file, void *fh, struct v4l2_buffer *buf)
v4l2l_get_timestamp(&b->buffer);
else
b->buffer.timestamp = buf->timestamp;
b->buffer.bytesused = buf->bytesused;
b->buffer.bytesused = dev->pix_format.sizeimage;
set_done(b);
buffer_written(dev, b);

Expand Down

0 comments on commit 4b85621

Please sign in to comment.