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:
59bdcd9
)
waylandsink: Fix compiler warning
author
Sebastian Dröge
<sebastian@centricular.com>
Sat, 21 Jun 2014 14:57:18 +0000
(16:57 +0200)
committer
Sebastian Dröge
<sebastian@centricular.com>
Sat, 21 Jun 2014 14:57:18 +0000
(16:57 +0200)
gstwaylandsink.c:480:14: error: comparison of constant -1 with expression of
type 'enum wl_shm_format' is always false
[-Werror,-Wtautological-constant-out-of-range-compare]
if (format == -1)
~~~~~~ ^ ~~
ext/wayland/gstwaylandsink.c
patch
|
blob
|
history
diff --git
a/ext/wayland/gstwaylandsink.c
b/ext/wayland/gstwaylandsink.c
index
c5556e7
..
365df7c
100644
(file)
--- a/
ext/wayland/gstwaylandsink.c
+++ b/
ext/wayland/gstwaylandsink.c
@@
-477,7
+477,7
@@
gst_wayland_sink_set_caps (GstBaseSink * bsink, GstCaps * caps)
goto invalid_format;
format = gst_video_format_to_wayland_format (GST_VIDEO_INFO_FORMAT (&info));
- if (format == -1)
+ if (
(gint)
format == -1)
goto invalid_format;
/* verify we support the requested format */