diff options
author | Thiago Santos <thiagoss@osg.samsung.com> | 2015-12-18 18:51:49 -0300 |
---|---|---|
committer | Thiago Santos <thiagoss@osg.samsung.com> | 2015-12-18 18:52:12 -0300 |
commit | fa2c22069309bb623867b558af7500dcba2da62f (patch) | |
tree | a05d2f238d16cf00c3bd9f5059518ca4e2055d68 | |
parent | 29de588e2fe14be39db01e4841d1ea95c94a551a (diff) | |
download | gstreamer-plugins-bad-fa2c22069309bb623867b558af7500dcba2da62f.tar.gz |
templatematch: remove useless function
-rw-r--r-- | ext/opencv/gsttemplatematch.cpp | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/ext/opencv/gsttemplatematch.cpp b/ext/opencv/gsttemplatematch.cpp index f166274e1..1223066d0 100644 --- a/ext/opencv/gsttemplatematch.cpp +++ b/ext/opencv/gsttemplatematch.cpp @@ -108,8 +108,6 @@ static void gst_template_match_set_property (GObject * object, guint prop_id, static void gst_template_match_get_property (GObject * object, guint prop_id, GValue * value, GParamSpec * pspec); -static gboolean gst_template_match_handle_sink_event (GstPad * pad, - GstObject * parent, GstEvent * event); static GstFlowReturn gst_template_match_transform_ip (GstOpencvVideoFilter * filter, GstBuffer * buf, IplImage * img); @@ -163,9 +161,6 @@ gst_template_match_class_init (GstTemplateMatchClass * klass) static void gst_template_match_init (GstTemplateMatch * filter) { - gst_pad_set_event_function (GST_BASE_TRANSFORM_SINK_PAD (filter), - GST_DEBUG_FUNCPTR (gst_template_match_handle_sink_event)); - filter->templ = NULL; filter->display = TRUE; filter->cvTemplateImage = NULL; @@ -281,31 +276,6 @@ gst_template_match_get_property (GObject * object, guint prop_id, /* GstElement vmethod implementations */ -/* this function handles the link with other elements */ -static gboolean -gst_template_match_handle_sink_event (GstPad * pad, GstObject * parent, - GstEvent * event) -{ - GstVideoInfo info; - gboolean res = TRUE; - - switch (GST_EVENT_TYPE (event)) { - case GST_EVENT_CAPS: - { - GstCaps *caps; - gst_event_parse_caps (event, &caps); - gst_video_info_from_caps (&info, caps); - break; - } - default: - break; - } - - res = gst_pad_event_default (pad, parent, event); - - return res; -} - static void gst_template_match_finalize (GObject * object) { |