Skip to content

Commit

Permalink
Use kernel-version to determine whether we should set vfl_dir
Browse files Browse the repository at this point in the history
Closes: #172
  • Loading branch information
umlaeute committed May 28, 2018
1 parent 12308e6 commit d33ea34
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 @@ -2093,7 +2093,7 @@ static void init_vdev(struct video_device *vdev, int nr)

/* since kernel-3.7, there is a new field 'vfl_dir' that has to be
* set to VFL_DIR_M2M for bidrectional devices */
#ifdef VFL_DIR_M2M
#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 7, 0)
vdev->vfl_dir = VFL_DIR_M2M;
#endif

Expand Down

0 comments on commit d33ea34

Please sign in to comment.