mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-18 05:16:05 +00:00
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:
parent
9233c6ac69
commit
d9385687fb
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue