meson: fix build with missing libudev-devel

(cherry picked from commit b4c7973d49)
This commit is contained in:
Wim Taymans 2024-01-26 13:28:07 +01:00 committed by Robert Mader
parent ee5a6f16f9
commit 3a4374ec09
7 changed files with 28 additions and 9 deletions

View file

@ -27,8 +27,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;