From 91ff8a811023faadb24bd0b03c5024338331c53f Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Fri, 28 Jun 2019 20:19:20 -0400 Subject: [PATCH] nlecomposition: Drop all group-done but the last one --- plugins/nle/nlecomposition.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/plugins/nle/nlecomposition.c b/plugins/nle/nlecomposition.c index de18ec933b..c0ad82b381 100644 --- a/plugins/nle/nlecomposition.c +++ b/plugins/nle/nlecomposition.c @@ -1347,6 +1347,13 @@ ghost_event_probe_handler (GstPad * ghostpad G_GNUC_UNUSED, retval = GST_PAD_PROBE_DROP; } break; + case GST_EVENT_STREAM_GROUP_DONE: + if (GST_EVENT_SEQNUM (event) != comp->priv->real_eos_seqnum) { + GST_INFO_OBJECT (comp, "Dropping STREAM_GROUP_DONE %d != %d", + GST_EVENT_SEQNUM (event), comp->priv->real_eos_seqnum); + retval = GST_PAD_PROBE_DROP; + } + break; case GST_EVENT_SEGMENT: { guint64 rstart, rstop;