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:
parent
99a52f74e7
commit
e3ec07220b
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user