[Buildroot] [git commit branch/2018.02.x] webkitgtk: add an option to control USE_GSTREAMER_GL
Peter Korsgaard
peter at korsgaard.com
Wed Nov 14 09:44:42 UTC 2018
commit: https://git.buildroot.net/buildroot/commit/?id=03b24bf276983d2bcf9dcc5a8bd3c219ad06b153
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2018.02.x
This covers the case where GL/GLES is available (so -DENABLE_OPENGL=ON
gets passed), which makes the webkitgtk build system assume GStreamer-GL
is available, while actually it is not.
Also, providing an option to manually disable usage of GStremer-GL can
help with certain target configurations in which using OpenGL for video
handling might result in incorrect rendering.
This fixes some autobuilder failures like the following:
http://autobuild.buildroot.net/results/187796535af53ece426641ff7d88aabada281674
http://autobuild.buildroot.net/results/00c1a8ea23a99728a4f3f4478705f2383414ae41
Signed-off-by: Adrian Perez de Castro <aperez at igalia.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
(cherry picked from commit 4ac29a8196903f7e88674bb4b2f58c0f29fb122d)
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
---
package/webkitgtk/Config.in | 15 +++++++++++++++
package/webkitgtk/webkitgtk.mk | 7 +++++++
2 files changed, 22 insertions(+)
diff --git a/package/webkitgtk/Config.in b/package/webkitgtk/Config.in
index 96a7ab0c94..260fa15bad 100644
--- a/package/webkitgtk/Config.in
+++ b/package/webkitgtk/Config.in
@@ -88,6 +88,21 @@ config BR2_PACKAGE_WEBKITGTK_MULTIMEDIA
This option pulls in all of the required dependencies
to enable multimedia (video/audio) support.
+if BR2_PACKAGE_WEBKITGTK_MULTIMEDIA
+
+config BR2_PACKAGE_WEBKITGTK_USE_GSTREAMER_GL
+ bool "use gstreamer-gl"
+ default y
+ depends on BR2_PACKAGE_GST1_PLUGINS_BASE_HAS_LIB_OPENGL
+ select BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_GL
+ help
+ Use the GStreamer GL elements for handling video content.
+ This is recommended as it improves performance of video
+ playback. In some target configurations incorrect rendering
+ might be produced, and disabling this option may help.
+
+endif
+
config BR2_PACKAGE_WEBKITGTK_WEBDRIVER
bool "WebDriver support"
help
diff --git a/package/webkitgtk/webkitgtk.mk b/package/webkitgtk/webkitgtk.mk
index f28417ac73..8ac3ff467b 100644
--- a/package/webkitgtk/webkitgtk.mk
+++ b/package/webkitgtk/webkitgtk.mk
@@ -97,4 +97,11 @@ WEBKITGTK_CONF_OPTS += -DENABLE_WAYLAND_TARGET=ON
endif
endif
+ifeq ($(BR2_PACKAGE_WEBKITGTK_USE_GSTREAMER_GL),y)
+WEBKITGTK_CONF_OPTS += -DUSE_GSTREAMER_GL=ON
+WEBKITGTK_DEPENDENCIES += gst1-plugins-bad
+else
+WEBKITGTK_CONF_OPTS += -DUSE_GSTREAMER_GL=OFF
+endif
+
$(eval $(cmake-package))
More information about the buildroot
mailing list