wldisplay: Don't compare a guint with < 0
authorSebastian Dröge <sebastian@centricular.com>
Wed, 23 Nov 2016 16:45:42 +0000 (18:45 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Wed, 23 Nov 2016 16:45:42 +0000 (18:45 +0200)
-1 is the "invalid" value, compare to it directly.

CID 1394490.

ext/wayland/wldisplay.c

index 6622228..07a203c 100644 (file)
@@ -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;