aggregator: Caps event always goes to the aggregate thread

So no need to check it here.

https://bugzilla.gnome.org/show_bug.cgi?id=782918
This commit is contained in:
Olivier Crête 2017-05-21 14:28:00 +02:00
parent d6e46b905a
commit a463859eba

View file

@ -2606,12 +2606,10 @@ gst_aggregator_pad_event_func (GstPad * pad, GstObject * parent,
}
if (event) {
gboolean is_caps = (GST_EVENT_TYPE (event) == GST_EVENT_CAPS);
if (!klass->sink_event (self, aggpad, event)) {
/* Copied from GstPad to convert boolean to a GstFlowReturn in
* the event handling func */
ret = is_caps ? GST_FLOW_NOT_NEGOTIATED : GST_FLOW_ERROR;
ret = GST_FLOW_ERROR;
}
}