RTP: Fix GStreamer version check

This commit is contained in:
Marvin W 2021-05-14 10:17:51 +02:00
parent 3bfd407843
commit bec73ed371
No known key found for this signature in database
GPG key ID: 072E9235DB996F2A
3 changed files with 6 additions and 2 deletions

View file

@ -8,7 +8,6 @@ find_pkg_config_with_fallback(GIO
)
if(GIO_FOUND AND NOT GIO_VERSION)
# TODO
find_package(GLib ${GLib_GLOBAL_VERSION})
set(GIO_VERSION ${GLib_VERSION})
endif()

View file

@ -8,6 +8,11 @@ find_pkg_config_with_fallback(GstRtp
DEPENDS Gst
)
if(GstRtp_FOUND AND NOT GstRtp_VERSION)
find_package(Gst)
set(GstRtp_VERSION ${Gst_VERSION})
endif()
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(GstRtp
REQUIRED_VARS GstRtp_LIBRARY

View file

@ -12,7 +12,7 @@ find_packages(RTP_PACKAGES REQUIRED
GstAudio
)
if(Gst_VERSION VERSION_GREATER "1.16")
if(GstRtp_VERSION VERSION_GREATER "1.16")
set(RTP_DEFINITIONS GST_1_16)
endif()