summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>2018-05-21 13:27:14 +0200
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>2018-05-21 16:16:24 +0200
commit45fb111850955d9192e43b9dbcb2ef8e3974e58d (patch)
tree37d1227f2d13a6621f541514d48acd10ad2579c6
parent6f879bbc62037bc08b0867bc8e48e6f515e2eac8 (diff)
downloadgstreamer-vaapi-45fb111850955d9192e43b9dbcb2ef8e3974e58d.tar.gz
plugins: guard GstGL code
-rw-r--r--gst/vaapi/gstvaapipluginutil.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gst/vaapi/gstvaapipluginutil.c b/gst/vaapi/gstvaapipluginutil.c
index fa25131e..648c91b9 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