plugins: fix compilation when EGL/GLX is disabled
authorVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
Wed, 13 Apr 2016 18:33:32 +0000 (20:33 +0200)
committerVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
Wed, 13 Apr 2016 18:35:59 +0000 (20:35 +0200)
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.

gst/vaapi/gstvaapipluginutil.c

index dc81d0e..cc878e3 100644 (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)