ximagesrc: Fix 'comparison of unsigned expression >= 0 is always true'
This variable can never be below zero anyway.
This commit is contained in:
parent
f2e569cde8
commit
9d5e5ea553
@ -1074,8 +1074,7 @@ gst_ximage_src_get_caps (GstBaseSrc * bs)
|
|||||||
if (s->endx >= s->startx && s->endy >= s->starty) {
|
if (s->endx >= s->startx && s->endy >= s->starty) {
|
||||||
/* this means user has put in values */
|
/* this means user has put in values */
|
||||||
if (s->startx < xcontext->width && s->endx < xcontext->width &&
|
if (s->startx < xcontext->width && s->endx < xcontext->width &&
|
||||||
s->starty < xcontext->height && s->endy < xcontext->height &&
|
s->starty < xcontext->height && s->endy < xcontext->height) {
|
||||||
s->startx >= 0 && s->starty >= 0) {
|
|
||||||
/* values are fine */
|
/* values are fine */
|
||||||
s->width = width = s->endx - s->startx + 1;
|
s->width = width = s->endx - s->startx + 1;
|
||||||
s->height = height = s->endy - s->starty + 1;
|
s->height = height = s->endy - s->starty + 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user