Commit 619237c0 authored by Thibault Saunier's avatar Thibault Saunier 🌵

aggregator: Flush sinkpads when stopping

All values are meaningless in that case, so we should make sure that
we clean everything
parent d9385687
...@@ -690,11 +690,22 @@ eat: ...@@ -690,11 +690,22 @@ eat:
return res; return res;
} }
static gboolean
_flush_pad (GstAggregator * self, GstAggregatorPad * pad, gpointer unused_udata)
{
_aggpad_flush (pad, self);
return TRUE;
}
static gboolean static gboolean
_stop (GstAggregator * agg) _stop (GstAggregator * agg)
{ {
_reset_flow_values (agg); _reset_flow_values (agg);
gst_aggregator_iterate_sinkpads (agg,
(GstAggregatorPadForeachFunc) _flush_pad, NULL);
return TRUE; return TRUE;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment