diff --git a/ext/opencv/gstsegmentation.cpp b/ext/opencv/gstsegmentation.cpp index 472a3c4b8f..d67bb9a648 100644 --- a/ext/opencv/gstsegmentation.cpp +++ b/ext/opencv/gstsegmentation.cpp @@ -416,7 +416,7 @@ gst_segmentation_transform_ip (GstVideoFilter * btrans, GstVideoFrame * frame) if (background_diff ((uchar *) filter->cvYUV->imageData + j * 3, (codeBook *) & (filter->TcodeBook[j]), 3, minMod, maxMod)) { - filter->cvFG->imageData[j] = 255; + filter->cvFG->imageData[j] = (char) 255; } else { filter->cvFG->imageData[j] = 0; } diff --git a/ext/wayland/wldisplay.c b/ext/wayland/wldisplay.c index 07a203cac4..39782bca5c 100644 --- a/ext/wayland/wldisplay.c +++ b/ext/wayland/wldisplay.c @@ -176,7 +176,7 @@ gst_wl_display_check_format_for_shm (GstWlDisplay * display, guint i; shm_fmt = gst_video_format_to_wl_shm_format (format); - if (shm_fmt < 0) + if (shm_fmt == (enum wl_shm_format) -1) return FALSE; formats = display->shm_formats;