From 17745ba5dbdda1b4b327a16c87f02f30d546b814 Mon Sep 17 00:00:00 2001 From: Chao Guo Date: Fri, 12 Jan 2024 11:55:01 +0900 Subject: [PATCH] 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: --- subprojects/gst-plugins-base/gst-libs/gst/gl/gstgldisplay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-base/gst-libs/gst/gl/gstgldisplay.c b/subprojects/gst-plugins-base/gst-libs/gst/gl/gstgldisplay.c index d51863c4be..71c12cf7c6 100644 --- a/subprojects/gst-plugins-base/gst-libs/gst/gl/gstgldisplay.c +++ b/subprojects/gst-plugins-base/gst-libs/gst/gl/gstgldisplay.c @@ -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");