test for GStreamer>= 1.24, define GST_124 if found

This commit is contained in:
F. Duncanh
2024-04-22 01:36:10 -04:00
parent 0057033485
commit 50799326ca
2 changed files with 13 additions and 0 deletions

View File

@@ -47,6 +47,12 @@ if ( GST_MACOS )
message ( STATUS "define GST_MACOS" )
endif()
if ( GST_124 )
add_definitions( -DGST_124 )
message ( STATUS "define GST_124" )
endif()
add_executable( uxplay uxplay.cpp )
target_link_libraries( uxplay
renderers

View File

@@ -38,6 +38,13 @@ pkg_check_modules(GST REQUIRED gstreamer-1.0>=1.4
gstreamer-app-1.0>=1.4
)
# temporary hack to deal with an issue in gstreamer 1.24
pkg_check_modules ( GST124 gstreamer-1.0>=1.24 )
if ( GST124_FOUND )
message( STATUS "*** GStreamer >= 1.24: GST_124 will be defined" )
set( GST_124 "1" CACHE STRING "define GST_124" )
endif()
add_library( renderers
STATIC
audio_renderer_gstreamer.c