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.
This commit is contained in:
Víctor Manuel Jáquez Leal 2016-04-13 20:33:32 +02:00
parent 1e32d62c1e
commit f61b728ae1

View file

@ -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)