From b16697d2869d8d19f59212275e83cf130df9f0c9 Mon Sep 17 00:00:00 2001 From: Jan Schmidt Date: Thu, 28 May 2015 00:59:39 +1000 Subject: [PATCH] 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. --- libs/gst/base/gstaggregator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/gst/base/gstaggregator.c b/libs/gst/base/gstaggregator.c index 4370ac2..bd08db6 100644 --- a/libs/gst/base/gstaggregator.c +++ b/libs/gst/base/gstaggregator.c @@ -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); } -- 2.7.4