mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 15:27:07 +00:00
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: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2648>
This commit is contained in:
parent
685a611812
commit
4068564880
1 changed files with 2 additions and 0 deletions
|
@ -1252,10 +1252,12 @@ gst_deinit (void)
|
||||||
GST_INFO ("deinitialized GStreamer");
|
GST_INFO ("deinitialized GStreamer");
|
||||||
g_mutex_unlock (&init_lock);
|
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
|
/* 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
|
* correctly. It's of course making the above statement a lie: for a short
|
||||||
* while we're not deinitialized yet */
|
* while we're not deinitialized yet */
|
||||||
_priv_gst_debug_cleanup ();
|
_priv_gst_debug_cleanup ();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue