wldisplay: Don't compare a guint with < 0
-1 is the "invalid" value, compare to it directly. CID 1394490.
This commit is contained in:
parent
0acb3d87bb
commit
95ed2cf687
@ -199,7 +199,7 @@ gst_wl_display_check_format_for_dmabuf (GstWlDisplay * display,
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
dmabuf_fmt = gst_video_format_to_wl_dmabuf_format (format);
|
dmabuf_fmt = gst_video_format_to_wl_dmabuf_format (format);
|
||||||
if (dmabuf_fmt < 0)
|
if (dmabuf_fmt == (guint) - 1)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
formats = display->dmabuf_formats;
|
formats = display->dmabuf_formats;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user