mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 16:50:47 +00:00
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:
parent
d9385687fb
commit
619237c0d0
1 changed files with 11 additions and 0 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue