mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20:36 +00:00
8ba1b8146f
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.
33 lines
No EOL
1 KiB
Meson
33 lines
No EOL
1 KiB
Meson
sources = files(['gsttranscoder.c'])
|
|
headers = files(['gsttranscoder.h', 'transcoder-prelude.h'])
|
|
|
|
install_headers(headers, subdir : 'gstreamer-' + api_version + '/gst/transcoder')
|
|
|
|
gst_transcoder = library('gsttranscoder-' + api_version,
|
|
sources,
|
|
install: true,
|
|
include_directories : [configinc, libsinc],
|
|
dependencies: [gst_dep, gstpbutils_dep],
|
|
c_args: gst_plugins_bad_args + ['-DGST_USE_UNSTABLE_API', '-DBUILDING_GST_TRANSCODER'],
|
|
soversion : soversion,
|
|
)
|
|
if build_gir
|
|
transcoder_gir = gnome.generate_gir(gst_transcoder,
|
|
sources : sources + headers,
|
|
nsversion : api_version,
|
|
namespace : 'GstTranscoder',
|
|
identifier_prefix : 'Gst',
|
|
symbol_prefix : 'gst_',
|
|
includes : ['GObject-2.0',
|
|
'Gst-' + api_version,
|
|
'GstPbutils-' + api_version],
|
|
dependencies: [gst_dep, gstpbutils_dep],
|
|
install : true,
|
|
extra_args : gir_init_section
|
|
)
|
|
endif
|
|
|
|
gst_transcoder_dep = declare_dependency(link_with: gst_transcoder,
|
|
dependencies : [gst_dep, gstpbutils_dep],
|
|
include_directories : [libsinc]
|
|
) |