mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-16 11:55:39 +00:00
st/prober: Fix build with v4l2 disabled
This commit is contained in:
parent
9ebf1c4d4d
commit
3d0235a450
|
@ -385,6 +385,7 @@ p_udev_add_v4l(struct prober_device *pdev,
|
|||
uint32_t usb_iface,
|
||||
const char *path)
|
||||
{
|
||||
#ifdef XRT_HAVE_V4L2
|
||||
U_ARRAY_REALLOC_OR_FREE(pdev->v4ls, struct prober_v4l,
|
||||
(pdev->num_v4ls + 1));
|
||||
|
||||
|
@ -394,6 +395,7 @@ p_udev_add_v4l(struct prober_device *pdev,
|
|||
v4l->usb_iface = usb_iface;
|
||||
v4l->v4l_index = v4l_index;
|
||||
v4l->path = strdup(path);
|
||||
#endif
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in a new issue