Changing GST_TRACERS runtime

Nicolas Dufresne nicolas at ndufresne.ca
Sun Jan 17 02:48:31 UTC 2021


Le jeudi 14 janvier 2021 à 07:03 -0600, Marianna S. Buschle a écrit :
> Is there a way to modify GST_TRACERS variable runtime?
> 
> I have found gst_debug_set_threshold_from_string("*:4,GST_TRACER:7", 1); for
> modifying GST_DEBUG since setenv("GST_DEBUG","cat:level...", 1) only works
> when called before gst_init()
> 
> Is there something similar for GST_TRACERS?
> 
> I understand that some tracers might need to be on from start in order to
> work properly but I believe others shouldn't have an issue with being turned
> ON/OFF.

At the moment no, you need GST_TRACERS env to be set before gst_init(). It could
be nice to add some run-time support in the future, at least for tracers were
it's possible (unlike a leak tracer as an example).

> 
> For info I'm using gst-shark tracers in a custom C application.
> 
> 
> 
> --
> Sent from: http://gstreamer-devel.966125.n4.nabble.com/
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel




More information about the gstreamer-devel mailing list