From: Mathieu Duponchelle Date: Sun, 16 Feb 2014 19:35:09 +0000 (+0100) Subject: collectpads: Forward seek events to the peer directly X-Git-Tag: 1.3.1~96 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c86e53ab77bbd7feb456f9e2fb498cf4de6ef5ec;p=platform%2Fupstream%2Fgstreamer.git 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 --- 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; }