gstreamer: Require the same version for all GStreamer deps

We don't want people to have different GStramer library versions.

GStreamer now is developed in a monorepo, so the versions are in sync.
This commit is contained in:
Benjamin Otte 2024-04-29 12:59:47 +02:00 committed by Benjamin Otte
parent 3c3bf0192d
commit 4bcd2c75cc
2 changed files with 5 additions and 4 deletions

View File

@ -26,6 +26,7 @@ cloudproviders_req = '>= 0.3.1'
xkbcommon_req = '>= 0.2.0'
sysprof_req = '>= 3.38.0'
vulkan_req = '>= 1.3'
gstreamer_req = '>= 1.23.1'
fs = import('fs')
gnome = import('gnome')

View File

@ -5,14 +5,14 @@ media_backends = []
extra_c_args = ['-DGTK_COMPILATION']
extra_c_args += common_cflags
gstplayer_dep = dependency('gstreamer-player-1.0', version: '>= 1.12.3',
gstplayer_dep = dependency('gstreamer-player-1.0', version: gstreamer_req,
required: get_option('media-gstreamer'))
gstgl_dep = dependency('gstreamer-gl-1.0', version: '>= 1.12.3',
gstgl_dep = dependency('gstreamer-gl-1.0', version: gstreamer_req,
required: get_option('media-gstreamer'))
gstallocators_dep = dependency('gstreamer-allocators-1.0', version: '>= 1.23.1',
gstallocators_dep = dependency('gstreamer-allocators-1.0', version: gstreamer_req,
required: get_option('media-gstreamer'))
if gstplayer_dep.found() and gstgl_dep.found()
if gstplayer_dep.found() and gstgl_dep.found() and gstallocators_dep.found()
extra_win_cflags = []
if host_machine.system() == 'windows' and gstgl_dep.version().version_compare('>=1.19.1')