From 95ed2cf6873adfca74ffdf3fa9c506daccd3c23f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 23 Nov 2016 18:45:42 +0200 Subject: [PATCH] wldisplay: Don't compare a guint with < 0 -1 is the "invalid" value, compare to it directly. CID 1394490. --- ext/wayland/wldisplay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/wayland/wldisplay.c b/ext/wayland/wldisplay.c index 6622228573..07a203cac4 100644 --- a/ext/wayland/wldisplay.c +++ b/ext/wayland/wldisplay.c @@ -199,7 +199,7 @@ gst_wl_display_check_format_for_dmabuf (GstWlDisplay * display, return FALSE; dmabuf_fmt = gst_video_format_to_wl_dmabuf_format (format); - if (dmabuf_fmt < 0) + if (dmabuf_fmt == (guint) - 1) return FALSE; formats = display->dmabuf_formats;