gst: Allow tracers to set the GST_DEBUG_DUMP_DOT_DIR

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7999>
This commit is contained in:
Thibault Saunier 2025-02-11 22:34:30 -03:00 committed by GStreamer Marge Bot
parent 642ad6c927
commit 174460770b

View File

@ -815,6 +815,12 @@ init_post (GOptionContext * context, GOptionGroup * group, gpointer data,
#ifndef GST_DISABLE_GST_TRACER_HOOKS
_priv_gst_tracing_init ();
/* Allow the `dots` tracer to set the `GST_DEBUG_DUMP_DOT_DIR` variable if it
* was not set before */
#ifndef GST_DISABLE_GST_DEBUG
if (!priv_gst_dump_dot_dir)
priv_gst_dump_dot_dir = g_getenv ("GST_DEBUG_DUMP_DOT_DIR");
#endif
#endif
return TRUE;