mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-09 17:05:52 +00:00
concat: Properly propagate seqnum of segment events
Was broken by https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/819 Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/872>
This commit is contained in:
parent
0b50501c43
commit
23171cb6af
1 changed files with 2 additions and 1 deletions
|
@ -539,6 +539,7 @@ gst_concat_sink_event (GstPad * pad, GstObject * parent, GstEvent * event)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case GST_EVENT_SEGMENT:{
|
case GST_EVENT_SEGMENT:{
|
||||||
|
guint32 seqnum = gst_event_get_seqnum (event);
|
||||||
/* Drop segment event, we create our own one */
|
/* Drop segment event, we create our own one */
|
||||||
gst_event_copy_segment (event, &spad->segment);
|
gst_event_copy_segment (event, &spad->segment);
|
||||||
gst_event_replace (&event, NULL);
|
gst_event_replace (&event, NULL);
|
||||||
|
@ -606,7 +607,7 @@ gst_concat_sink_event (GstPad * pad, GstObject * parent, GstEvent * event)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
event = gst_event_new_segment (&segment);
|
event = gst_event_new_segment (&segment);
|
||||||
gst_event_set_seqnum (event, gst_event_get_seqnum (event));
|
gst_event_set_seqnum (event, seqnum);
|
||||||
|
|
||||||
g_mutex_unlock (&self->lock);
|
g_mutex_unlock (&self->lock);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue