mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-03 14:08:56 +00:00
pkgconfig: don't put -DG_THREADS_MANDATORY into our pkg-config CFLAGS
If we force -DG_THREADS_MANDATORY onto apps, then g_thread_supported() will always evaluate to TRUE, so the typical thread initialisation boilerplate code if (!g_thread_supported()) g_thread_init(NULL); will no longer work, and the threading system not be initialised and us printing a warning in gst_init. This may be fine in most cases, since late initialisation is allowed and automatically done in g_type_init() since GLib 2.23.2, but let's be cautious and only use this define when compiling GStreamer itself. See #608398.
This commit is contained in:
parent
69c531784e
commit
79d3f1a2c1
2 changed files with 2 additions and 2 deletions
|
@ -11,4 +11,4 @@ Description: Streaming media framework, Not Installed
|
|||
Version: @VERSION@
|
||||
Requires: @GST_PKG_DEPS@@LIBXML_PKG@
|
||||
Libs: ${libdir}/gst/libgstreamer-@GST_MAJORMINOR@.la
|
||||
Cflags: -I${includedir} -I@srcdir@/.. -I${includedir}/libs -I@srcdir@/../libs -DG_THREADS_MANDATORY
|
||||
Cflags: -I${includedir} -I@srcdir@/.. -I${includedir}/libs -I@srcdir@/../libs
|
||||
|
|
|
@ -10,4 +10,4 @@ Description: Streaming media framework
|
|||
Requires: @GST_PKG_DEPS@@LIBXML_PKG@
|
||||
Version: @VERSION@
|
||||
Libs: -L${libdir} -lgstreamer-@GST_MAJORMINOR@
|
||||
Cflags: -I${includedir} -DG_THREADS_MANDATORY
|
||||
Cflags: -I${includedir}
|
||||
|
|
Loading…
Reference in a new issue