summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2014-06-21 16:57:18 +0200
committerSebastian Dröge <sebastian@centricular.com>2014-06-21 16:57:18 +0200
commit902a9a56d05829d6be52941a30e80a3de69ca2e1 (patch)
tree68559205b32fd79d32135ee88ba826b0b8ad04f9 /ext
parent59bdcd9ae373f0ef36f4b7c37668ded4ca0a73ab (diff)
downloadgstreamer-plugins-bad-902a9a56d05829d6be52941a30e80a3de69ca2e1.tar.gz
waylandsink: Fix compiler warning
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) ~~~~~~ ^ ~~
Diffstat (limited to 'ext')
-rw-r--r--ext/wayland/gstwaylandsink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/wayland/gstwaylandsink.c b/ext/wayland/gstwaylandsink.c
index c5556e7bd..365df7ce5 100644
--- 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 */