diff options
author | Víctor Manuel Jáquez Leal <vjaquez@igalia.com> | 2018-05-21 13:27:14 +0200 |
---|---|---|
committer | Víctor Manuel Jáquez Leal <vjaquez@igalia.com> | 2018-05-21 16:16:24 +0200 |
commit | 45fb111850955d9192e43b9dbcb2ef8e3974e58d (patch) | |
tree | 37d1227f2d13a6621f541514d48acd10ad2579c6 | |
parent | 6f879bbc62037bc08b0867bc8e48e6f515e2eac8 (diff) | |
download | gstreamer-vaapi-45fb111850955d9192e43b9dbcb2ef8e3974e58d.tar.gz |
plugins: guard GstGL code
-rw-r--r-- | gst/vaapi/gstvaapipluginutil.c | 2 |
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 |