aggregator: Flush sinkpads when stopping

All values are meaningless in that case, so we should make sure that
we clean everything
This commit is contained in:
Thibault Saunier 2014-07-10 13:18:21 +02:00 committed by Tim-Philipp Müller
parent 7e5d9daf8e
commit e3075ed3ef

View file

@ -690,11 +690,22 @@ eat:
return res;
}
static gboolean
_flush_pad (GstAggregator * self, GstAggregatorPad * pad, gpointer unused_udata)
{
_aggpad_flush (pad, self);
return TRUE;
}
static gboolean
_stop (GstAggregator * agg)
{
_reset_flow_values (agg);
gst_aggregator_iterate_sinkpads (agg,
(GstAggregatorPadForeachFunc) _flush_pad, NULL);
return TRUE;
}