plugin: Fix `is-ges-timeline` registration
authorThibault Saunier <tsaunier@igalia.com>
Fri, 15 Jan 2021 18:25:12 +0000 (15:25 -0300)
committerThibault Saunier <tsaunier@igalia.com>
Wed, 10 Feb 2021 19:14:47 +0000 (16:14 -0300)
We need to register it for all subclasses.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-editing-services/-/merge_requests/227>

plugins/ges/gesbasebin.c
plugins/ges/gesdemux.c

index 14b402d..5e1c6ca 100644 (file)
@@ -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 ();
 }
 
index 4c413d0..ed13a06 100644 (file)
@@ -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)