tests/glheaders: use #if for platform selection

GST_GL_HAVE_* are always defined to 0 or 1 so an #ifdef will always
succeed which is not the intention here.
This commit is contained in:
Matthew Waters 2018-01-03 23:09:20 +11:00
parent c117460420
commit 9e563a20c2

View file

@ -64,7 +64,7 @@
#include <gst/gl/egl/gstglmemoryegl.h>
#endif
#ifdef GST_GL_HAVE_PLATFORM_GLX
#if GST_GL_HAVE_PLATFORM_GLX
#include <gst/gl/x11/gstgldisplay_x11.h>
#include <gst/gl/x11/gstglwindow_x11.h>
#endif