examples: facedetect: only create variables when needed
authorLuis de Bethencourt <luis@debethencourt.com>
Mon, 10 Aug 2015 18:06:16 +0000 (19:06 +0100)
committerLuis de Bethencourt <luis@debethencourt.com>
Mon, 10 Aug 2015 18:09:52 +0000 (19:09 +0100)
commit29786be80f9bdfa45f30ff464d76c637db51c597
tree9800ab3783eb673c58ebbff8db3e59182bbeae4f
parent53a9374eb559b0e7e245a615ed23bb4c83022b6a
examples: facedetect: only create variables when needed

The variables to store face values are only needed if they will be used to
control the volume. Which isn't the default to avoid potentially being very
loud accidentally. Only create variables when needed.
tests/examples/opencv/gstfacedetect_test.c