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
This commit is contained in:
Mathieu Duponchelle 2014-02-16 20:35:09 +01:00 committed by Sebastian Dröge
parent 0fb6a15a65
commit c86e53ab77

View file

@ -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;
}