Skip to content

Commit

Permalink
Revert 97dc86b and fix #607
Browse files Browse the repository at this point in the history
Revert to FIFO management of dev->outbuf_list
  • Loading branch information
stephematician committed Dec 13, 2024
1 parent e750af9 commit 183bcdd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions v4l2loopback.c
Original file line number Diff line number Diff line change
Expand Up @@ -1880,8 +1880,8 @@ static int vidioc_dqbuf(struct file *file, void *fh, struct v4l2_buffer *buf)
case V4L2_BUF_TYPE_VIDEO_OUTPUT:
spin_lock_bh(&dev->list_lock);

b = list_entry(dev->outbufs_list.prev, struct v4l2l_buffer,
list_head);
b = list_first_entry(&dev->outbufs_list, struct v4l2l_buffer,
list_head);
list_move_tail(&b->list_head, &dev->outbufs_list);

spin_unlock_bh(&dev->list_lock);
Expand Down

0 comments on commit 183bcdd

Please sign in to comment.