Commit 95ed2cf6 authored by Sebastian Dröge's avatar Sebastian Dröge 🍵

wldisplay: Don't compare a guint with < 0

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

CID 1394490.
parent 0acb3d87
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment