[0.11] gst-plugins-good: videomixer2: remove pad event function

Wim Taymans wtay at kemper.freedesktop.org
Thu Jan 26 10:49:23 PST 2012


Module: gst-plugins-good
Branch: 0.11
Commit: 9095f455d509cf1c02b3fcb6d27730b01caebe50
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-good/commit/?id=9095f455d509cf1c02b3fcb6d27730b01caebe50

Author: Wim Taymans <wim.taymans at collabora.co.uk>
Date:   Thu Jan 26 19:48:14 2012 +0100

videomixer2: remove pad event function

We use the one from collectpads

---

 gst/videomixer/videomixer2.c |   25 -------------------------
 1 files changed, 0 insertions(+), 25 deletions(-)

diff --git a/gst/videomixer/videomixer2.c b/gst/videomixer/videomixer2.c
index 8f864e8..ec8273a 100644
--- a/gst/videomixer/videomixer2.c
+++ b/gst/videomixer/videomixer2.c
@@ -323,29 +323,6 @@ beach:
   return ret;
 }
 
-static gboolean
-gst_videomixer2_pad_sink_event (GstPad * pad, GstObject * parent,
-    GstEvent * event)
-{
-  gboolean ret = FALSE;
-
-  switch (GST_EVENT_TYPE (event)) {
-    case GST_EVENT_CAPS:
-    {
-      GstCaps *caps;
-
-      gst_event_parse_caps (event, &caps);
-      ret = gst_videomixer2_pad_sink_setcaps (pad, parent, caps);
-      gst_event_unref (event);
-      break;
-    }
-    default:
-      ret = gst_pad_event_default (pad, parent, event);
-      break;
-  }
-  return ret;
-}
-
 static GstCaps *
 gst_videomixer2_pad_sink_getcaps (GstPad * pad, GstObject * parent,
     GstCaps * filter)
@@ -549,8 +526,6 @@ static void
 gst_videomixer2_pad_init (GstVideoMixer2Pad * mixerpad)
 {
   /* setup some pad functions */
-  gst_pad_set_event_function (GST_PAD (mixerpad),
-      gst_videomixer2_pad_sink_event);
   gst_pad_set_query_function (GST_PAD (mixerpad),
       gst_videomixer2_pad_sink_query);
 



More information about the gstreamer-commits mailing list