mirror of
https://github.com/TakeV-Lambda/dino.git
synced 2024-11-22 06:54:29 +00:00
RTP: Fix GStreamer version check
This commit is contained in:
parent
3bfd407843
commit
bec73ed371
3 changed files with 6 additions and 2 deletions
|
@ -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()
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in a new issue