Audaspace: Enforce minimal pipewire library version
While I implemented pipewire support I forgot that some of the functions I use is not available in older pipewire versions. This adds proper library version sanity checks for pipewire. Pull Request: https://projects.blender.org/blender/blender/pulls/131610
This commit is contained in:
committed by
Sebastian Parborg
parent
4edf250a65
commit
bb53214661
2
extern/audaspace/CMakeLists.txt
vendored
2
extern/audaspace/CMakeLists.txt
vendored
@@ -727,7 +727,7 @@ endif()
|
||||
if(WITH_PIPEWIRE)
|
||||
if(AUDASPACE_STANDALONE)
|
||||
find_package(PkgConfig)
|
||||
pkg_check_modules(PIPEWIRE ${PACKAGE_OPTION} libpipewire-0.3)
|
||||
pkg_check_modules(PIPEWIRE ${PACKAGE_OPTION} libpipewire-0.3>=1.1.0)
|
||||
endif()
|
||||
|
||||
if(PIPEWIRE_FOUND)
|
||||
|
||||
@@ -53,7 +53,7 @@ bool loadPipeWire()
|
||||
|
||||
#undef PIPEWIRE_SYMBOL
|
||||
|
||||
return AUD_pw_init != nullptr;
|
||||
return AUD_pw_check_library_version != nullptr && AUD_pw_check_library_version(1,1,0);
|
||||
}
|
||||
|
||||
AUD_NAMESPACE_END
|
||||
|
||||
@@ -38,3 +38,4 @@ PIPEWIRE_SYMBOL(pw_thread_loop_new);
|
||||
PIPEWIRE_SYMBOL(pw_thread_loop_start);
|
||||
PIPEWIRE_SYMBOL(pw_thread_loop_stop);
|
||||
|
||||
PIPEWIRE_SYMBOL(pw_check_library_version);
|
||||
|
||||
Reference in New Issue
Block a user