aggregator: Push EOS on error return.

Before shutting down the srcpad task due to a
downstream error, push an EOS to give downstream
a chance to shut down somewhat cleanly.
This commit is contained in:
Jan Schmidt 2015-05-28 00:59:39 +10:00
parent 99a52f74e7
commit e3ec07220b

View file

@ -681,7 +681,7 @@ gst_aggregator_aggregate_func (GstAggregator * self)
} }
GST_OBJECT_UNLOCK (self); GST_OBJECT_UNLOCK (self);
if (flow_return == GST_FLOW_EOS) { if (flow_return == GST_FLOW_EOS || flow_return == GST_FLOW_ERROR) {
gst_aggregator_push_eos (self); gst_aggregator_push_eos (self);
} }