mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue