Changing GST_TRACERS runtime

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Changing GST_TRACERS runtime

Marianna S. Buschle
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.

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
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Changing GST_TRACERS runtime

Nicolas Dufresne-5
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
> [hidden email]
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel