mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 20:51:13 +00:00
aggregator: set future seqnum before propagating the seek event.
So the seqnum is properly set for the following events.
This commit is contained in:
parent
eb1d322962
commit
f6adb43916
1 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue