diff --git a/ext/opencv/gsttemplatematch.c b/ext/opencv/gsttemplatematch.c index 99b9594766..602dd8e911 100644 --- a/ext/opencv/gsttemplatematch.c +++ b/ext/opencv/gsttemplatematch.c @@ -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,