Commit d9385687 authored by Thibault Saunier's avatar Thibault Saunier 🌵

aggregator: Do not forget to reset the flow return when stoping

Setting it to FLUSHING when the element is not started, and to OK
when it starts.
parent 9233c6ac
......@@ -293,6 +293,7 @@ gst_aggregator_set_src_caps (GstAggregator * self, GstCaps * caps)
static void
_reset_flow_values (GstAggregator * self)
{
self->priv->flow_return = GST_FLOW_FLUSHING;
self->priv->send_stream_start = TRUE;
self->priv->send_segment = TRUE;
gst_segment_init (&self->segment, GST_FORMAT_TIME);
......@@ -460,6 +461,7 @@ _start (GstAggregator * self)
self->priv->send_segment = TRUE;
self->priv->send_eos = TRUE;
self->priv->srccaps = NULL;
self->priv->flow_return = GST_FLOW_OK;
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