From: Mark Nauwelaerts Date: Fri, 20 Jan 2012 15:57:52 +0000 (+0100) Subject: deinterlace: fix arithmetic for unsigned comparison X-Git-Tag: RELEASE-0.11.1~7^2~33 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9d771c9bed64673e6b54ec80ae09ef1c51e2e707;p=platform%2Fupstream%2Fgst-plugins-good.git deinterlace: fix arithmetic for unsigned comparison --- diff --git a/gst/deinterlace/gstdeinterlace.c b/gst/deinterlace/gstdeinterlace.c index 373fb20..a79b836 100644 --- a/gst/deinterlace/gstdeinterlace.c +++ b/gst/deinterlace/gstdeinterlace.c @@ -1706,8 +1706,8 @@ restart: gst_buffer_set_caps (outbuf, GST_PAD_CAPS (self->srcpad)); } - g_return_val_if_fail (self->history_count - 1 - - gst_deinterlace_method_get_latency (self->method) >= 0, GST_FLOW_ERROR); + g_return_val_if_fail (self->history_count >= + 1 + gst_deinterlace_method_get_latency (self->method), GST_FLOW_ERROR); buf = self->field_history[self->history_count - 1 -