gl/display: fix build warning of [-Wint-in-bool-context]

GST_GL_DISPLAY_TYPE_VIV_FB is enum constant but is used
as bool.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5913>
This commit is contained in:
Chao Guo 2024-01-12 11:55:01 +09:00 committed by GStreamer Marge Bot
parent c1a9b77a1a
commit 17745ba5db

View file

@ -368,7 +368,7 @@ gst_gl_display_new_with_type (GstGLDisplayType type)
#endif
custom_new_types |= GST_GL_DISPLAY_TYPE_X11;
#if GST_GL_HAVE_WINDOW_VIV_FB
if (!display && (GST_GL_DISPLAY_TYPE_VIV_FB)) {
if (!display && (type & GST_GL_DISPLAY_TYPE_VIV_FB)) {
const gchar *disp_idx_str = NULL;
gint disp_idx = 0;
disp_idx_str = g_getenv ("GST_GL_VIV_FB");