From 52a7771e74152f833a0e5781e83b0b10cb924289 Mon Sep 17 00:00:00 2001 From: Artem Mamonov Date: Sun, 8 Oct 2023 11:06:26 +0000 Subject: [PATCH] request buffer length = VIDEO_MAX_PLANES for multi-planar devices --- src/ustreamer/device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ustreamer/device.c b/src/ustreamer/device.c index 60dc20ee4..c54fbb1dd 100644 --- a/src/ustreamer/device.c +++ b/src/ustreamer/device.c @@ -346,7 +346,7 @@ int us_device_grab_buffer(us_device_s *dev, us_hw_buffer_s **hw) { new.type = dev->capture_type; new.memory = dev->io_method; if (dev->capture_type == V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE) { - new.length = 1; + new.length = VIDEO_MAX_PLANES; new.m.planes = planes; }