From eb53e62c6d30894fa4045c9fbbc77b8a0ffe48cb Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Sun, 16 Jun 2019 23:00:31 -0400 Subject: [PATCH] timeline: Drop ASYNC_/START/DONE messages When we have nested timelines, we do not want those messages to pop to the parent timelines as we handle the sequence ourself in the timeline. --- ges/ges-timeline.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/ges/ges-timeline.c b/ges/ges-timeline.c index ca8e67e309..8d29fd6b68 100644 --- a/ges/ges-timeline.c +++ b/ges/ges-timeline.c @@ -326,6 +326,17 @@ ges_timeline_handle_message (GstBin * bin, GstMessage * message) { GESTimeline *timeline = GES_TIMELINE (bin); + if (GST_MESSAGE_TYPE (message) == GST_MESSAGE_ASYNC_START) { + GST_INFO_OBJECT (timeline, "Dropping %" GST_PTR_FORMAT, message); + return; + } + + if (GST_MESSAGE_TYPE (message) == GST_MESSAGE_ASYNC_DONE) { + GST_INFO_OBJECT (timeline, "Dropping %" GST_PTR_FORMAT, message); + + return; + } + if (GST_MESSAGE_TYPE (message) == GST_MESSAGE_ELEMENT) { GstMessage *amessage = NULL; const GstStructure *mstructure = gst_message_get_structure (message);