aggregator: Push EOS on error return.
authorJan Schmidt <jan@centricular.com>
Wed, 27 May 2015 14:59:39 +0000 (00:59 +1000)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 2 Dec 2017 15:10:26 +0000 (15:10 +0000)
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

index 4370ac2..bd08db6 100644 (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);
     }