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:
parent
c1a9b77a1a
commit
17745ba5db
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user