mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
inputselector: Set sequence number on segment events
This commit is contained in:
parent
3146282d48
commit
014d10391c
1 changed files with 5 additions and 1 deletions
|
@ -601,8 +601,12 @@ forward_sticky_events (GstPad * sinkpad, GstEvent ** event, gpointer user_data)
|
|||
|
||||
if (GST_EVENT_TYPE (*event) == GST_EVENT_SEGMENT) {
|
||||
GstSegment *seg = &GST_SELECTOR_PAD (sinkpad)->segment;
|
||||
GstEvent *e;
|
||||
|
||||
gst_pad_push_event (sel->srcpad, gst_event_new_segment (seg));
|
||||
e = gst_event_new_segment (seg);
|
||||
gst_event_set_seqnum (e, GST_SELECTOR_PAD_CAST (sinkpad)->segment_seqnum);
|
||||
|
||||
gst_pad_push_event (sel->srcpad, e);
|
||||
} else {
|
||||
gst_pad_push_event (sel->srcpad, gst_event_ref (*event));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue