wldisplay: Don't compare a guint with < 0

-1 is the "invalid" value, compare to it directly.

CID 1394490.
This commit is contained in:
Sebastian Dröge 2016-11-23 18:45:42 +02:00
parent 0acb3d87bb
commit 95ed2cf687

View 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;