From 8ba1b8146f9b47761b6a9f6c71252aa19b888cbc Mon Sep 17 00:00:00 2001 From: Alistair Buxton Date: Sat, 19 Oct 2019 13:52:54 +0100 Subject: [PATCH] meson: use gir_init_section in GstTranscoder GstTranscoder adds extra_args for gir which call gst_init() during introspection. These extra arguments are the same as the standard ones defined in the top level meson.build as "git_init_section", However, the top level definition also ensures an empty plugin repository is used. Because GstTranscoder does not use the standard args, plugins get loaded when it is introspected. Since some of the plugins fail without specific hardware, this causes #1100. This patch makes it use gir_init_section. Fixes #1100. --- gst-libs/gst/transcoder/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst-libs/gst/transcoder/meson.build b/gst-libs/gst/transcoder/meson.build index 47076d417c..7a0e841a52 100644 --- a/gst-libs/gst/transcoder/meson.build +++ b/gst-libs/gst/transcoder/meson.build @@ -23,7 +23,7 @@ if build_gir 'GstPbutils-' + api_version], dependencies: [gst_dep, gstpbutils_dep], install : true, - extra_args : ['--add-init-section=extern gboolean gst_init(gint *argc, gchar **argv); gst_init(NULL,NULL);'] + extra_args : gir_init_section ) endif