diff --git a/README.md b/README.md index 02aec74..59d7f5e 100644 --- a/README.md +++ b/README.md @@ -88,6 +88,7 @@ Tested with the following software: - Microsoft Teams - 1.3.00.30857 (works) - 1.3.00.5153 (works) + - 1.4.00.26453 (works) - Chrome - 87.0.4280.88 (works) - 81.0.4044.138 (works) diff --git a/tensorflow b/tensorflow index 919f693..c256c07 160000 --- a/tensorflow +++ b/tensorflow @@ -1 +1 @@ -Subproject commit 919f693420e35d00c8d0a42100837ae3718f7927 +Subproject commit c256c071bb26e1e13b4666d1b3e229e110bc914a diff --git a/videoio/loopback.cc b/videoio/loopback.cc index 8539a00..121d4d3 100644 --- a/videoio/loopback.cc +++ b/videoio/loopback.cc @@ -55,6 +55,11 @@ int loopback_init(const std::string& device, int w, int h, int debug) { vid_format.type = V4L2_BUF_TYPE_VIDEO_OUTPUT; ret_code = ioctl(fdwr, VIDIOC_G_FMT, &vid_format); + if(ret_code < 0) { + fprintf(stderr, "%s:%d(%s): Failed to get device video format: %s\n", __FILE__, __LINE__, __func__, strerror(errno)); + close(fdwr); + return -1; + } if(ret_code < 0) { fprintf(stderr, "%s:%d(%s): Failed to get device video format: %s\n", __FILE__, __LINE__, __func__, strerror(errno));