summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-plugins/gst-plugins-vaapi/files/1.14.1-fix_no_GL.patch')
-rw-r--r--media-plugins/gst-plugins-vaapi/files/1.14.1-fix_no_GL.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/media-plugins/gst-plugins-vaapi/files/1.14.1-fix_no_GL.patch b/media-plugins/gst-plugins-vaapi/files/1.14.1-fix_no_GL.patch
new file mode 100644
index 00000000000..d0a34b5bd0c
--- /dev/null
+++ b/media-plugins/gst-plugins-vaapi/files/1.14.1-fix_no_GL.patch
@@ -0,0 +1,33 @@
+From 45fb111850955d9192e43b9dbcb2ef8e3974e58d Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?=
+ <vjaquez@igalia.com>
+Date: Mon, 21 May 2018 13:27:14 +0200
+Subject: plugins: guard GstGL code
+
+---
+ gst/vaapi/gstvaapipluginutil.c | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/gst/vaapi/gstvaapipluginutil.c b/gst/vaapi/gstvaapipluginutil.c
+index fa25131..648c91b 100644
+--- a/gst/vaapi/gstvaapipluginutil.c
++++ b/gst/vaapi/gstvaapipluginutil.c
+@@ -246,6 +246,7 @@ gst_vaapi_create_display_from_gl_context (GstObject * gl_context_object)
+ static void
+ gst_vaapi_find_gl_context (GstElement * element)
+ {
++#if USE_GST_GL_HELPERS
+ GstVaapiPluginBase *const plugin = GST_VAAPI_PLUGIN_BASE (element);
+
+ /* if the element is vaapisink or any vaapi encoder it doesn't need
+@@ -282,6 +283,7 @@ no_valid_gl_display:
+ gst_object_replace (&plugin->gl_other_context, NULL);
+ return;
+ }
++#endif
+ }
+
+ gboolean
+--
+cgit v1.1
+