mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 10:11:08 +00:00
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:
parent
0fb6a15a65
commit
c86e53ab77
1 changed files with 6 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue