debug: Instantiate GType when dumping debug categories.
authorJan Schmidt <jan@centricular.com>
Fri, 1 Apr 2016 14:05:39 +0000 (01:05 +1100)
committerJan Schmidt <jan@centricular.com>
Fri, 13 May 2016 08:05:39 +0000 (18:05 +1000)
commitfe3180dcca39c85889dcfb794610765ee7429425
treed923726141835f6b5378ed06ff35d21247424b3c
parent5e43ee5989d7b51dcb3145bd997525247a3d62dc
debug: Instantiate GType when dumping debug categories.

A lot of debug categories are declared in element class_init
functions, which don't get run until the element is first created
(not just registered in the plugin load function). This means
that --gst-debug-help doesn't print out a lot of categories.

Creating an instance of each element from the element factory
makes them visible, at some extra cost - 2-3 times longer, which can
be a full second or two of extra waiting. Yikes!

https://bugzilla.gnome.org/show_bug.cgi?id=741001
gst/gst.c