diff --git a/CMakeLists.txt b/CMakeLists.txt index 2a2ab75..225583d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 diff --git a/renderers/CMakeLists.txt b/renderers/CMakeLists.txt index 97cf992..1fb025d 100644 --- a/renderers/CMakeLists.txt +++ b/renderers/CMakeLists.txt @@ -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