gst_debug_log_valist: assertion `category != NULL' failed

Tim-Philipp Müller t.i.m at zen.co.uk
Wed Dec 19 04:05:58 PST 2012


On Wed, 2012-12-19 at 03:57 -0800, Paddy wrote:

> There was no bug - just a call to gst_debug_log() that was invoked before
> GST_DEBUG_CATEGORY_INIT(), just as you said it would be :)
> 
> Is GST_DEBUG_CATEGORY_INIT() safe to call multiple times - there's no
> mention either way in the docs.

Yes, it is (but not thread-safe). You should usually call it somewhere
where it's only called once, e.g. in a plugin's plugin_init() function,
or type function, or class_init function or so. In an app somewhere
around gst_init().

Cheers
 -Tim



More information about the gstreamer-devel mailing list