mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 06:46:38 +00:00
aggregator: send flush_stop ourselves if needed
In !159 , we switched to sending flush_start ourselves from the do_seek implementation. If no flushing seek successfully made its way upstream, we need to send flush_stop ourselves as well.
This commit is contained in:
parent
c55c61eb84
commit
4087361da3
1 changed files with 8 additions and 0 deletions
|
@ -2051,6 +2051,14 @@ gst_aggregator_do_seek (GstAggregator * self, GstEvent * event)
|
||||||
GST_OBJECT_LOCK (self);
|
GST_OBJECT_LOCK (self);
|
||||||
priv->flushing = FALSE;
|
priv->flushing = FALSE;
|
||||||
GST_OBJECT_UNLOCK (self);
|
GST_OBJECT_UNLOCK (self);
|
||||||
|
|
||||||
|
/* No flush stop is inbound for us to forward */
|
||||||
|
if (flush) {
|
||||||
|
GstEvent *event = gst_event_new_flush_stop (TRUE);
|
||||||
|
|
||||||
|
gst_event_set_seqnum (event, self->priv->next_seqnum);
|
||||||
|
gst_pad_push_event (self->srcpad, event);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
GST_INFO_OBJECT (self, "seek done, result: %d", evdata.result);
|
GST_INFO_OBJECT (self, "seek done, result: %d", evdata.result);
|
||||||
|
|
Loading…
Reference in a new issue