projects
/
platform
/
upstream
/
gst-plugins-bad.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0acb3d8
)
wldisplay: Don't compare a guint with < 0
author
Sebastian Dröge
<sebastian@centricular.com>
Wed, 23 Nov 2016 16:45:42 +0000
(18:45 +0200)
committer
Sebastian 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
patch
|
blob
|
history
diff --git
a/ext/wayland/wldisplay.c
b/ext/wayland/wldisplay.c
index
6622228
..
07a203c
100644
(file)
--- a/
ext/wayland/wldisplay.c
+++ b/
ext/wayland/wldisplay.c
@@
-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;