summaryrefslogtreecommitdiff
path: root/gst/vaapi/gstvaapipluginutil.c
diff options
context:
space:
mode:
authorVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>2016-04-13 20:33:32 +0200
committerVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>2016-04-13 20:35:59 +0200
commitf61b728ae157b5f163d28ff2b588087c93ad6a3d (patch)
treee359709cf81bd0e74a2e5d680629a60f7bf95bbb /gst/vaapi/gstvaapipluginutil.c
parent1e32d62c1e27e4df5d127c30fd3b6084e2db8483 (diff)
plugins: fix compilation when EGL/GLX is disabled
The compiler might complain of gst_vaapi_create_display_from_handle() being unused if both EGL and GLX are disabled. This patch avoid that compilation error.
Diffstat (limited to 'gst/vaapi/gstvaapipluginutil.c')
-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 dc81d0ea..cc878e32 100644
--- a/gst/vaapi/gstvaapipluginutil.c
+++ b/gst/vaapi/gstvaapipluginutil.c
@@ -103,6 +103,7 @@ gst_vaapi_create_display (GstVaapiDisplayType display_type,
return display;
}
+#if USE_GST_GL_HELPERS
static GstVaapiDisplay *
gst_vaapi_create_display_from_handle (GstVaapiDisplayType display_type,
gpointer handle)
@@ -122,6 +123,7 @@ gst_vaapi_create_display_from_handle (GstVaapiDisplayType display_type,
}
return NULL;
}
+#endif
static GstVaapiDisplay *
gst_vaapi_create_display_from_gl_context (GstObject * gl_context_object)