We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a8968a commit a8afee3Copy full SHA for a8afee3
v4l2loopback/v4l2loopback-dc.c
@@ -2149,6 +2149,14 @@ init_vdev (struct video_device *vdev)
2149
V4L2_CAP_VIDEO_CAPTURE |
2150
V4L2_CAP_STREAMING | V4L2_CAP_READWRITE;
2151
#endif
2152
+
2153
+ /* since kernel-3.7, there is a new field 'vfl_dir' that has to be
2154
+ * set to VFL_DIR_M2M for bidrectional devices.
2155
+ * For DroidCam, this allows other programs like ffmpeg to write to
2156
+ * the device. */
2157
+ #ifdef VFL_DIR_M2M
2158
+ vdev->vfl_dir = VFL_DIR_M2M;
2159
+ #endif
2160
#if DEBUG
2161
#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 20, 0)
2162
vdev->debug = V4L2_DEBUG_IOCTL | V4L2_DEBUG_IOCTL_ARG;
0 commit comments