diff --git a/subprojects/gstreamer/gst/gst.c b/subprojects/gstreamer/gst/gst.c index 21c237c0c2..01c03c6177 100644 --- a/subprojects/gstreamer/gst/gst.c +++ b/subprojects/gstreamer/gst/gst.c @@ -1252,10 +1252,12 @@ gst_deinit (void) GST_INFO ("deinitialized GStreamer"); g_mutex_unlock (&init_lock); +#ifndef GST_DISABLE_GST_DEBUG /* Doing this as the very last step to allow the above GST_INFO() to work * correctly. It's of course making the above statement a lie: for a short * while we're not deinitialized yet */ _priv_gst_debug_cleanup (); +#endif } /**