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.
This commit is contained in:
Thibault Saunier 2014-07-10 13:15:55 +02:00
parent 9233c6ac69
commit d9385687fb

View file

@ -293,6 +293,7 @@ gst_aggregator_set_src_caps (GstAggregator * self, GstCaps * caps)
static void static void
_reset_flow_values (GstAggregator * self) _reset_flow_values (GstAggregator * self)
{ {
self->priv->flow_return = GST_FLOW_FLUSHING;
self->priv->send_stream_start = TRUE; self->priv->send_stream_start = TRUE;
self->priv->send_segment = TRUE; self->priv->send_segment = TRUE;
gst_segment_init (&self->segment, GST_FORMAT_TIME); gst_segment_init (&self->segment, GST_FORMAT_TIME);
@ -460,6 +461,7 @@ _start (GstAggregator * self)
self->priv->send_segment = TRUE; self->priv->send_segment = TRUE;
self->priv->send_eos = TRUE; self->priv->send_eos = TRUE;
self->priv->srccaps = NULL; self->priv->srccaps = NULL;
self->priv->flow_return = GST_FLOW_OK;
return TRUE; return TRUE;
} }