mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-21 07:46:38 +00:00
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) ~~~~~~ ^ ~~
This commit is contained in:
parent
59bdcd9ae3
commit
902a9a56d0
1 changed files with 1 additions and 1 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue