From 410fd67045bc6f5d4e1f1c90fd702d858f23313e Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Fri, 15 Jan 2021 15:25:12 -0300 Subject: [PATCH] plugin: Fix `is-ges-timeline` registration We need to register it for all subclasses. Part-of: --- plugins/ges/gesbasebin.c | 5 +++++ plugins/ges/gesdemux.c | 4 ---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/plugins/ges/gesbasebin.c b/plugins/ges/gesbasebin.c index 14b402d..5e1c6ca 100644 --- a/plugins/ges/gesbasebin.c +++ b/plugins/ges/gesbasebin.c @@ -113,6 +113,9 @@ ges_base_bin_class_init (GESBaseBinClass * self_class) GST_DEBUG_CATEGORY_INIT (gesbasebin, "gesbasebin", 0, "ges bin element"); + gst_tag_register ("is-ges-timeline", GST_TAG_FLAG_META, G_TYPE_BOOLEAN, + "is-ges-timeline", "The stream is a ges timeline.", NULL); + gclass->get_property = ges_base_bin_get_property; gclass->set_property = ges_base_bin_set_property; gclass->dispose = ges_base_bin_dispose; @@ -144,6 +147,8 @@ ges_base_bin_init (GESBaseBin * self) { GESBaseBinPrivate *priv = ges_base_bin_get_instance_private (self); + ges_init (); + priv->flow_combiner = gst_flow_combiner_new (); } diff --git a/plugins/ges/gesdemux.c b/plugins/ges/gesdemux.c index 4c413d0..ed13a06 100644 --- a/plugins/ges/gesdemux.c +++ b/plugins/ges/gesdemux.c @@ -204,8 +204,6 @@ ges_demux_class_init (GESDemuxClass * self_class) sinkpad_caps = ges_demux_get_sinkpad_caps (); - gst_tag_register ("is-ges-timeline", GST_TAG_FLAG_META, G_TYPE_BOOLEAN, - "is-ges-timeline", "The stream is a ges timeline.", NULL); gclass->get_property = ges_demux_get_property; gclass->set_property = ges_demux_set_property; @@ -607,8 +605,6 @@ ges_demux_sink_chain (GstPad * pad, GstObject * parent, GstBuffer * buffer) static void ges_demux_init (GESDemux * self) { - ges_init (); - SUPRESS_UNUSED_WARNING (GES_DEMUX); SUPRESS_UNUSED_WARNING (GES_IS_DEMUX); #if defined(g_autoptr) -- 2.7.4