From: Stefan Sauer Date: Fri, 16 Mar 2012 16:07:46 +0000 (+0100) Subject: facedetect: initialize some arbitrary variable that gcc-4.6 can track properly X-Git-Tag: 1.19.3~507^2~15679^2~45 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=486ddd38cf872099048f05b5f7739d6205e8d979;p=platform%2Fupstream%2Fgstreamer.git facedetect: initialize some arbitrary variable that gcc-4.6 can track properly The access to them is clearly guarded by the booleans though. --- diff --git a/ext/opencv/gstfacedetect.c b/ext/opencv/gstfacedetect.c index f53b6eab7e..485e424245 100644 --- a/ext/opencv/gstfacedetect.c +++ b/ext/opencv/gstfacedetect.c @@ -499,7 +499,7 @@ gst_face_detect_transform_ip (GstOpencvVideoFilter * base, GstBuffer * buf, GValue facelist = { 0 }; GValue facedata = { 0 }; CvSeq *faces; - CvSeq *mouth, *nose, *eyes; + CvSeq *mouth = NULL, *nose = NULL, *eyes = NULL; gint i; gboolean do_display = FALSE; @@ -524,9 +524,9 @@ gst_face_detect_transform_ip (GstOpencvVideoFilter * base, GstBuffer * buf, CvRect *r = (CvRect *) cvGetSeqElem (faces, i); guint mw = filter->min_size_width / 8; guint mh = filter->min_size_height / 8; - guint rnx, rny, rnw, rnh; - guint rmx, rmy, rmw, rmh; - guint rex, rey, rew, reh; + guint rnx = 0, rny = 0, rnw, rnh; + guint rmx = 0, rmy = 0, rmw, rmh; + guint rex = 0, rey = 0, rew, reh; gboolean have_nose, have_mouth, have_eyes; /* detect face features */