From 872e7d52df0f5976305e5801ad9679ae2dca9a5d Mon Sep 17 00:00:00 2001
From: Wim Taymans <wim.taymans@collabora.co.uk>
Date: Tue, 21 Jun 2011 12:31:57 +0200
Subject: [PATCH] pad: use event function directly

We will never go in this code path for CAPS events so directly call the event
function.
---
 gst/gstpad.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gst/gstpad.c b/gst/gstpad.c
index 14f02daec5..40b699a2a5 100644
--- a/gst/gstpad.c
+++ b/gst/gstpad.c
@@ -4547,7 +4547,7 @@ gst_pad_send_event (GstPad * pad, GstEvent * event)
 
     GST_OBJECT_UNLOCK (pad);
 
-    result = do_event_function (pad, event, eventfunc);
+    result = eventfunc (pad, event);
   }
 
   if (need_unlock)