From: Jonas Danielsson Date: Wed, 22 Jun 2022 07:43:02 +0000 (+0200) Subject: gst: add missing define guard X-Git-Tag: 1.22.0~1409 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4068564880988c442d7bc56786683e3b512ae0e9;p=platform%2Fupstream%2Fgstreamer.git gst: add missing define guard If compiled with -Dgstreamer:gst_debug=false and we have GST_REMOVE_DISABLED defined we will get the following compiler error: ``` [...]/libgstreamer-1.0.so.0.2100.0.p/gst.c.o: in function `gst_deinit': [...]/gst/gst.c:1258: undefined reference to `_priv_gst_debug_cleanup' [...] hidden symbol `_priv_gst_debug_cleanup' isn't defined ``` Add the missing define guard to avoid this. Part-of: --- diff --git a/subprojects/gstreamer/gst/gst.c b/subprojects/gstreamer/gst/gst.c index 21c237c..01c03c6 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 } /**