mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
configure: Fix hard-coded enabled v4l2 probe on Linux/ARM
Currently, enable_v4l2_probe is hard-coded to "yes" on linux, platforms arm and aarch64. This even overrides the --disable-v4l2-probe argument. As a result, it is impossible to disable v4l2_probe. It becomes a problem for use-cases, when startup time is critical, because the v4l2_probe feature increases the initialization time. This commit makes the v4l2_probe feature configurable. On linux, platforms arm and aarch64, the default value is still "yes". But now it can be disabled by the --disable-v4l2-probe argument. https://bugzilla.gnome.org/show_bug.cgi?id=795200
This commit is contained in:
parent
c2c7d110e5
commit
ae1c2b0c67
1 changed files with 5 additions and 3 deletions
|
@ -598,18 +598,20 @@ if test x$HAVE_GST_V4L2 = xyes; then
|
|||
fi
|
||||
|
||||
dnl Allow enabling v4l2 device probing
|
||||
default_v4l2_probe=no
|
||||
AS_CASE([$host],
|
||||
[*-*linux*],
|
||||
[AS_CASE([$host_cpu],
|
||||
[arm*], [
|
||||
enable_v4l2_probe="yes"],
|
||||
default_v4l2_probe=yes],
|
||||
[aarch64*], [
|
||||
enable_v4l2_probe="yes"])])
|
||||
default_v4l2_probe=yes])])
|
||||
AC_ARG_ENABLE(
|
||||
v4l2-probe,
|
||||
AC_HELP_STRING(
|
||||
[--enable-v4l2-probe],
|
||||
[enable V4L2 plugin to probe devices @<:@default=no@:>@]))
|
||||
[enable V4L2 plugin to probe devices]),
|
||||
[], [enable_v4l2_probe=$default_v4l2_probe])
|
||||
if test "x$enable_v4l2_probe" = "xyes"; then
|
||||
AC_DEFINE(GST_V4L2_ENABLE_PROBE, 1,
|
||||
[Define if Video4Linux probe shall be run at plugin load])
|
||||
|
|
Loading…
Reference in a new issue