mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-25 11:11:08 +00:00
aggregator: Set seqnum only when segments are received.
This commit is contained in:
parent
1efd6b2edd
commit
aaff6b50f8
1 changed files with 1 additions and 4 deletions
|
@ -707,6 +707,7 @@ _sink_event (GstAggregator * self, GstAggregatorPad * aggpad, GstEvent * event)
|
||||||
{
|
{
|
||||||
PAD_LOCK_EVENT (aggpad);
|
PAD_LOCK_EVENT (aggpad);
|
||||||
gst_event_copy_segment (event, &aggpad->segment);
|
gst_event_copy_segment (event, &aggpad->segment);
|
||||||
|
self->priv->seqnum = gst_event_get_seqnum (event);
|
||||||
PAD_UNLOCK_EVENT (aggpad);
|
PAD_UNLOCK_EVENT (aggpad);
|
||||||
goto eat;
|
goto eat;
|
||||||
}
|
}
|
||||||
|
@ -1068,12 +1069,8 @@ _src_event (GstAggregator * self, GstEvent * event)
|
||||||
switch (GST_EVENT_TYPE (event)) {
|
switch (GST_EVENT_TYPE (event)) {
|
||||||
case GST_EVENT_SEEK:
|
case GST_EVENT_SEEK:
|
||||||
{
|
{
|
||||||
gint old_seqnum = self->priv->seqnum;
|
|
||||||
self->priv->seqnum = gst_event_get_seqnum (event);
|
|
||||||
gst_event_ref (event);
|
gst_event_ref (event);
|
||||||
res = _do_seek (self, event);
|
res = _do_seek (self, event);
|
||||||
if (!res)
|
|
||||||
self->priv->seqnum = old_seqnum;
|
|
||||||
gst_event_unref (event);
|
gst_event_unref (event);
|
||||||
event = NULL;
|
event = NULL;
|
||||||
goto done;
|
goto done;
|
||||||
|
|
Loading…
Reference in a new issue