oggdemux: Don't drop sticky events

Previous commit was wrong. We should still send all events to the
pad (so that sticky events get attached to it and sent when pad
gets added).
This commit is contained in:
Edward Hervey 2017-10-24 11:05:20 +02:00 committed by Edward Hervey
parent e8a60b3de9
commit 6fd8d78d8b

View file

@ -4652,10 +4652,9 @@ gst_ogg_demux_send_event (GstOggDemux * ogg, GstEvent * event)
gst_event_ref (event);
GST_DEBUG_OBJECT (pad, "Pushing event %" GST_PTR_FORMAT, event);
if (pad->added) {
res &= gst_pad_push_event (GST_PAD (pad), event);
res &= gst_pad_push_event (GST_PAD (pad), event);
if (pad->added)
event_sent = TRUE;
}
}
}