faceoverlay: move face handling into own function and handle 0 face count
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Thu, 15 Mar 2012 17:47:58 +0000 (17:47 +0000)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Thu, 15 Mar 2012 17:47:58 +0000 (17:47 +0000)
commit549447d2880b6af7a59967039b34675f9b92eb73
tree556ddca18d129a293268743a6abadfdb8cd5fbdb
parent55b0f1e60168571ebbbd7a99ab51a687607a6619
faceoverlay: move face handling into own function and handle 0 face count

When a face disappears, we seem to get a message from facedetect with
a face count of 0, which we want to just ignore instead of trying to
access face #-1, which causes nasty warnings.
gst/faceoverlay/gstfaceoverlay.c