mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 14:56:36 +00:00
concat: Properly propagate EOS seqnum
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3284>
This commit is contained in:
parent
c989d023fd
commit
cb1345ab77
1 changed files with 2 additions and 0 deletions
|
@ -616,6 +616,7 @@ gst_concat_sink_event (GstPad * pad, GstObject * parent, GstEvent * event)
|
|||
break;
|
||||
}
|
||||
case GST_EVENT_EOS:{
|
||||
guint32 seqnum = gst_event_get_seqnum (event);
|
||||
gst_event_replace (&event, NULL);
|
||||
|
||||
if (!gst_concat_pad_wait (spad, self)) {
|
||||
|
@ -632,6 +633,7 @@ gst_concat_sink_event (GstPad * pad, GstObject * parent, GstEvent * event)
|
|||
|
||||
if (!next) {
|
||||
event = gst_event_new_eos ();
|
||||
gst_event_set_seqnum (event, seqnum);
|
||||
} else {
|
||||
gst_element_post_message (GST_ELEMENT_CAST (self),
|
||||
gst_message_new_duration_changed (GST_OBJECT_CAST (self)));
|
||||
|
|
Loading…
Reference in a new issue