From c86e53ab77bbd7feb456f9e2fb498cf4de6ef5ec Mon Sep 17 00:00:00 2001 From: Mathieu Duponchelle Date: Sun, 16 Feb 2014 20:35:09 +0100 Subject: [PATCH] collectpads: Forward seek events to the peer directly Taken from the adder seek handling code. Fixes https://bugzilla.gnome.org/show_bug.cgi?id=726461 --- libs/gst/base/gstcollectpads.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libs/gst/base/gstcollectpads.c b/libs/gst/base/gstcollectpads.c index c5012084d1..3b67b373d2 100644 --- a/libs/gst/base/gstcollectpads.c +++ b/libs/gst/base/gstcollectpads.c @@ -1859,8 +1859,13 @@ typedef struct static gboolean event_forward_func (GstPad * pad, EventData * data) { - data->result &= gst_pad_push_event (pad, gst_event_ref (data->event)); + gboolean ret = TRUE; + GstPad *peer = gst_pad_get_peer (pad); + if (peer) + ret = gst_pad_send_event (peer, gst_event_ref (data->event)); + + data->result &= ret; /* Always send to all pads */ return FALSE; }