From d59413ba0696ecd27ae7192f5a04572d60740dda Mon Sep 17 00:00:00 2001 From: Luis de Bethencourt Date: Sat, 19 Dec 2015 12:05:59 +0000 Subject: [PATCH] opencv: remove unneeded sink_event function in pyramidsegment --- ext/opencv/gstpyramidsegment.cpp | 34 +------------------------------- 1 file changed, 1 insertion(+), 33 deletions(-) diff --git a/ext/opencv/gstpyramidsegment.cpp b/ext/opencv/gstpyramidsegment.cpp index e8d70f61e8..0c9f1e9735 100644 --- a/ext/opencv/gstpyramidsegment.cpp +++ b/ext/opencv/gstpyramidsegment.cpp @@ -108,8 +108,6 @@ static void gst_pyramid_segment_set_property (GObject * object, guint prop_id, static void gst_pyramid_segment_get_property (GObject * object, guint prop_id, GValue * value, GParamSpec * pspec); -static gboolean gst_pyramid_segment_handle_sink_event (GstPad * pad, - GstObject * parent, GstEvent * event); static GstFlowReturn gst_pyramid_segment_transform (GstOpencvVideoFilter * base, GstBuffer * buf, IplImage * img, GstBuffer * outbuf, IplImage * outimg); @@ -180,9 +178,6 @@ gst_pyramid_segment_class_init (GstPyramidSegmentClass * klass) static void gst_pyramid_segment_init (GstPyramidSegment * filter) { - gst_pad_set_event_function (GST_BASE_TRANSFORM_SINK_PAD (filter), - GST_DEBUG_FUNCPTR (gst_pyramid_segment_handle_sink_event)); - filter->storage = cvCreateMemStorage (BLOCK_SIZE); filter->comp = cvCreateSeq (0, sizeof (CvSeq), sizeof (CvPoint), filter->storage); @@ -245,34 +240,7 @@ gst_pyramid_segment_get_property (GObject * object, guint prop_id, } } -/* GstElement vmethod implementations */ - -/* this function handles the link with other elements */ -static gboolean -gst_pyramid_segment_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; -} - -/* chain function +/* transform function * this function does the actual processing */ static GstFlowReturn