opencv: remove always-true check

filter->cvImage has just been used/dereferenced, there would be an error
there if the pointer was NULL. No need to check since it will always be true.
This commit is contained in:
Luis de Bethencourt 2015-03-05 15:34:09 +00:00
parent 254337365a
commit 632854eba3

View file

@ -356,7 +356,7 @@ gst_template_match_chain (GstPad * pad, GstObject * parent, GstBuffer * buf)
}
}
}
if (filter->cvTemplateImage && filter->cvImage && filter->cvDistImage) {
if (filter->cvTemplateImage && filter->cvDistImage) {
GstStructure *s;
gst_template_match_match (filter->cvImage, filter->cvTemplateImage,