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 committed by Tim-Philipp Müller
parent 656b7a0594
commit b16697d286

View file

@ -681,7 +681,7 @@ gst_aggregator_aggregate_func (GstAggregator * 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);
}