mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 23:06:49 +00:00
gesdemux: Initialize debug category before first using it
Prevents critical warnings during class_init()
This commit is contained in:
parent
e0f8b54a03
commit
eabfd98e6d
1 changed files with 3 additions and 1 deletions
|
@ -191,10 +191,12 @@ ges_demux_class_init (GESDemuxClass * self_class)
|
||||||
{
|
{
|
||||||
GObjectClass *gclass = G_OBJECT_CLASS (self_class);
|
GObjectClass *gclass = G_OBJECT_CLASS (self_class);
|
||||||
GstElementClass *gstelement_klass = GST_ELEMENT_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");
|
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,
|
gst_tag_register ("is-ges-timeline", GST_TAG_FLAG_META, G_TYPE_BOOLEAN,
|
||||||
"is-ges-timeline", "The stream is a ges timeline.", NULL);
|
"is-ges-timeline", "The stream is a ges timeline.", NULL);
|
||||||
gclass->get_property = ges_demux_get_property;
|
gclass->get_property = ges_demux_get_property;
|
||||||
|
|
Loading…
Reference in a new issue