Skip to content
Snippets Groups Projects
Commit 03436496 authored by Scott D Phillips's avatar Scott D Phillips Committed by Víctor Manuel Jáquez Leal
Browse files

plugins: Fix usage of GST_GL_HAVE_WINDOW_* defines

When these definitions are false, they are undef in the
preprocessor, not a defined value of 0. When they are unset the
compile fails with:

 'GST_GL_HAVE_WINDOW_WAYLAND' undeclared (first use in this function)

https://bugzilla.gnome.org/show_bug.cgi?id=780948
parent d68edb04
No related branches found
No related tags found
No related merge requests found
...@@ -177,12 +177,12 @@ gst_vaapi_create_display_from_gl_context (GstObject * gl_context_object) ...@@ -177,12 +177,12 @@ gst_vaapi_create_display_from_gl_context (GstObject * gl_context_object)
display_type = GST_VAAPI_DISPLAY_TYPE_WAYLAND; display_type = GST_VAAPI_DISPLAY_TYPE_WAYLAND;
#endif #endif
} else { } else {
#if USE_X11 #if USE_X11 && GST_GL_HAVE_WINDOW_X11
if (!display_type && GST_GL_HAVE_WINDOW_X11) if (!display_type)
display_type = GST_VAAPI_DISPLAY_TYPE_X11; display_type = GST_VAAPI_DISPLAY_TYPE_X11;
#endif #endif
#if USE_WAYLAND #if USE_WAYLAND && GST_GL_HAVE_WINDOW_WAYLAND
if (!display_type && GST_GL_HAVE_WINDOW_WAYLAND) if (!display_type)
display_type = GST_VAAPI_DISPLAY_TYPE_WAYLAND; display_type = GST_VAAPI_DISPLAY_TYPE_WAYLAND;
#endif #endif
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment