meson: fix build with missing libudev-devel

This commit is contained in:
Wim Taymans 2024-01-26 13:28:07 +01:00
parent cb2b7af8fd
commit b4c7973d49
7 changed files with 28 additions and 9 deletions

View file

@ -29,8 +29,13 @@ int spa_handle_factory_enum(const struct spa_handle_factory **factory,
*factory = &spa_v4l2_source_factory;
break;
case 1:
#ifdef HAVE_LIBUDEV
*factory = &spa_v4l2_udev_factory;
break;
#else
(*index)++;
SPA_FALLTHROUGH;
#endif
case 2:
*factory = &spa_v4l2_device_factory;
break;