ximagesrc: Fix 'comparison of unsigned expression >= 0 is always true'
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Tue, 6 Mar 2012 13:22:43 +0000 (14:22 +0100)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Tue, 6 Mar 2012 13:23:05 +0000 (14:23 +0100)
This variable can never be below zero anyway.

sys/ximage/gstximagesrc.c

index 36c0b44..9740312 100644 (file)
@@ -1074,8 +1074,7 @@ gst_ximage_src_get_caps (GstBaseSrc * bs)
   if (s->endx >= s->startx && s->endy >= s->starty) {
     /* this means user has put in values */
     if (s->startx < xcontext->width && s->endx < xcontext->width &&
-        s->starty < xcontext->height && s->endy < xcontext->height &&
-        s->startx >= 0 && s->starty >= 0) {
+        s->starty < xcontext->height && s->endy < xcontext->height) {
       /* values are fine */
       s->width = width = s->endx - s->startx + 1;
       s->height = height = s->endy - s->starty + 1;