mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-07 16:08:51 +00:00
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
This commit is contained in:
parent
d68edb04a1
commit
0343649667
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue