gesdemux: Initialize debug category before first using it

Prevents critical warnings during class_init()
This commit is contained in:
Sebastian Dröge 2019-10-01 18:01:21 +03:00
parent e0f8b54a03
commit eabfd98e6d

View file

@ -191,10 +191,12 @@ ges_demux_class_init (GESDemuxClass * self_class)
{
GObjectClass *gclass = G_OBJECT_CLASS (self_class);
GstElementClass *gstelement_klass = GST_ELEMENT_CLASS (self_class);
GstCaps *sinkpad_caps = ges_demux_get_sinkpad_caps ();
GstCaps *sinkpad_caps;
GST_DEBUG_CATEGORY_INIT (gesdemux, "gesdemux", 0, "ges demux element");
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;