mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 06:58:56 +00:00
nlecomposition: Properly set seqnum on flush events
This commit is contained in:
parent
eb53e62c6d
commit
c1206df0bb
1 changed files with 12 additions and 3 deletions
|
@ -1308,16 +1308,25 @@ ghost_event_probe_handler (GstPad * ghostpad G_GNUC_UNUSED,
|
||||||
event = gst_event_new_flush_stop (TRUE);
|
event = gst_event_new_flush_stop (TRUE);
|
||||||
GST_PAD_PROBE_INFO_DATA (info) = event;
|
GST_PAD_PROBE_INFO_DATA (info) = event;
|
||||||
gst_event_set_seqnum (event, comp->priv->flush_seqnum);
|
gst_event_set_seqnum (event, comp->priv->flush_seqnum);
|
||||||
|
if (comp->priv->seek_seqnum) {
|
||||||
|
GST_EVENT_SEQNUM (event) = comp->priv->seek_seqnum;
|
||||||
|
GST_INFO_OBJECT (comp, "Setting FLUSH_START seqnum: %d",
|
||||||
|
comp->priv->seek_seqnum);
|
||||||
|
}
|
||||||
comp->priv->flush_seqnum = 0;
|
comp->priv->flush_seqnum = 0;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case GST_EVENT_FLUSH_START:
|
case GST_EVENT_FLUSH_START:
|
||||||
if (gst_event_get_seqnum (event) != comp->priv->flush_seqnum) {
|
if (gst_event_get_seqnum (event) != comp->priv->flush_seqnum) {
|
||||||
GST_INFO_OBJECT (comp, "Dropping flush start");
|
GST_INFO_OBJECT (comp, "Dropping flush start %d != %d",
|
||||||
|
gst_event_get_seqnum (event), comp->priv->flush_seqnum);
|
||||||
retval = GST_PAD_PROBE_DROP;
|
retval = GST_PAD_PROBE_DROP;
|
||||||
} else {
|
} else {
|
||||||
GST_INFO_OBJECT (comp, "Forwarding our flush start with seqnum %i",
|
if (comp->priv->seek_seqnum) {
|
||||||
comp->priv->flush_seqnum);
|
GST_EVENT_SEQNUM (event) = comp->priv->seek_seqnum;
|
||||||
|
GST_INFO_OBJECT (comp, "Setting FLUSH_START seqnum: %d",
|
||||||
|
comp->priv->seek_seqnum);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case GST_EVENT_STREAM_START:
|
case GST_EVENT_STREAM_START:
|
||||||
|
|
Loading…
Reference in a new issue