aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Nicolas Dufresne <nicolas.dufresne@collabora.com>2020-06-07 21:00:26 -0300
committerGravatar Yann E. MORIN <yann.morin.1998@free.fr>2020-07-02 23:43:35 +0200
commitf50086e59fe997cdeb3da381cfdefc1bd41d305c (patch)
tree5af109d37520d3d899f93c5455be99c096c7d60c
parent60e3a09693703f0c923322d39ce1210baf154983 (diff)
downloadbuildroot-f50086e59fe997cdeb3da381cfdefc1bd41d305c.tar.gz
buildroot-f50086e59fe997cdeb3da381cfdefc1bd41d305c.tar.bz2
package/gstreamer1/gst1-plugins-good: Enable GUDEV for V4L2 if available
Video4Linux2 plugins can udev for device probing and monitor. This greatly improves load time and monitoring performance. It also enables hotplug monitoring for cameras. gstreamer is libglib2-based; libgudev is libnglib2-based. So they both have the same basic dependencies as liblib2 has, and thus propagating the dependencies of libgudev is not necessary (but might be confusing in the future, even though such a change is highly unlikely...) Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.com> Signed-off-by: Ezequiel Garcia <ezequiel@collabora.com> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
-rw-r--r--package/gstreamer1/gst1-plugins-good/Config.in1
-rw-r--r--package/gstreamer1/gst1-plugins-good/gst1-plugins-good.mk7
2 files changed, 8 insertions, 0 deletions
diff --git a/package/gstreamer1/gst1-plugins-good/Config.in b/package/gstreamer1/gst1-plugins-good/Config.in
index 20aebc473e..be77f5a82e 100644
--- a/package/gstreamer1/gst1-plugins-good/Config.in
+++ b/package/gstreamer1/gst1-plugins-good/Config.in
@@ -295,6 +295,7 @@ config BR2_PACKAGE_GST1_PLUGINS_GOOD_PLUGIN_SHOUT2
config BR2_PACKAGE_GST1_PLUGINS_GOOD_PLUGIN_V4L2
bool "v4l2"
depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_0 # multi planar api
+ select BR2_PACKAGE_LIBGUDEV if BR2_PACKAGE_HAS_UDEV
help
elements for Video 4 Linux
diff --git a/package/gstreamer1/gst1-plugins-good/gst1-plugins-good.mk b/package/gstreamer1/gst1-plugins-good/gst1-plugins-good.mk
index 6709f14cca..eed4bfe117 100644
--- a/package/gstreamer1/gst1-plugins-good/gst1-plugins-good.mk
+++ b/package/gstreamer1/gst1-plugins-good/gst1-plugins-good.mk
@@ -354,6 +354,13 @@ endif
ifeq ($(BR2_PACKAGE_GST1_PLUGINS_GOOD_PLUGIN_V4L2),y)
GST1_PLUGINS_GOOD_CONF_OPTS += -Dv4l2=enabled
+# Enable use of gudev if available, for device probing and monitoring.
+ifeq ($(BR2_PACKAGE_LIBGUDEV),y)
+GST1_PLUGINS_GOOD_DEPENDENCIES += libgudev
+GST1_PLUGINS_GOOD_CONF_OPTS += -Dv4l2-gudev=enabled
+else
+GST1_PLUGINS_GOOD_CONF_OPTS += -Dv4l2-gudev=disabled
+endif
else
GST1_PLUGINS_GOOD_CONF_OPTS += -Dv4l2=disabled
endif