aggregator: set future seqnum before propagating the seek event.

So the seqnum is properly set for the following events.
This commit is contained in:
Mathieu Duponchelle 2014-07-18 01:41:26 +02:00 committed by Tim-Philipp Müller
parent eb1d322962
commit f6adb43916

View file

@ -1014,10 +1014,12 @@ _src_event (GstAggregator * self, GstEvent * event)
switch (GST_EVENT_TYPE (event)) {
case GST_EVENT_SEEK:
{
gint old_seqnum = self->priv->seqnum;
self->priv->seqnum = gst_event_get_seqnum (event);
gst_event_ref (event);
res = _do_seek (self, event);
if (res)
self->priv->seqnum = gst_event_get_seqnum (event);
if (!res)
self->priv->seqnum = old_seqnum;
gst_event_unref (event);
event = NULL;
goto done;